Private Declare Function CreateWindowEx Lib "user32" Alias "CreateWindowExA" (ByVal dwExStyle As Integer, ByVal lpClassName As String, ByVal lpWindowName As String, ByVal dwStyle As Integer, ByVal x As Integer, ByVal y As Integer, ByVal nWidth As Integer, ByVal nHeight As Integer, ByVal hwndParent As Integer, ByVal hMenu As Integer, ByVal hInstance As Integer, ByRef lpParam As Object) As Integer
I am creating a winform,that I want to have the same look and feel on a window on windows 7? I thought of using CreateWindowEx. But I am just randomly picking things and not going anywhere.
I'm using createwindowex to create a button on an external window. I can use Spy++ to see all of the messages the button is sending to the parent window. The problem I'm having is catching these messages from the parent window.I've been trying a lot of different methods, and just when I think one is working, something still isn't quite right. Right now, I am using a hook dll made with c#, and it seems to be working somewhat. It seems like it is a lot more than should be needed for what I'm doing.I originally thought I could just use wndproc to catch all of the messages, but I found that it doesn't catch external windows messages(unless i'm doing something wrong).Is there anyone that can point me in the right direction to create a button on an external window, then catch the messages when it is clicked.
I'm working up a system where I plan on using RealProxy objects to enable intercepting method calls against a set of objects, handling the call, and then returning appropriate results. This works just find for simple return types like strings or ints, but I can't seem to return objects from the RealProxy.Invoke method. Everything works. I get no errors, but the returned value is always NOTHING, instead of an object.
I've worked up the smallest sample code I could, and have included it below. Essentially, just call RPtest and single step through. The code creates a simple object, RPTestA, with a string field and an object valued field It then retrieves the string
I'm making a Visual Basic GUI application to display whether a number of my ports are open for people to know whether things like my website and my Minecraft server are open.My problem is I have absolutely no idea how to do this in Visual Basic.Basically, I'm asking for something which sends a signal to an IP with a specific port, if it is open then return true, if it's closed, return false. Similar to: http:[url]....
I would like the following function to return Nothing if the element with the specified key is not in the collection. Instead, it returns an error - something to the effect of "no element found"
Public Class MyCollection Inherits System.Collections.ObjectModel.Collection(Of MyType) Public Function FindByActivityKey(ByVal searchValue As Integer) As MyType
In order to return a value from a VB.NET function one can assign a value to the "Functions Name" or use "return value." I sometimes see these inter-mixed in the same function. Personally, I prefer the return. My question is, what is the internal difference, if any, between the two?
Dim mappath As MatchCollection = r.Matches(randomstring) when changed to derp doesn't work. Derp does work when you put it in a message box too. I tried .tostring. I don't know what to do D:) I tried tostring, I tried converting with cstr but it say's it cannot return a value, what do?
Can someone explain me the behaviour of the following line in VB Return Not (s Is Nothing)I am looking to translate this in C# and i am not sure about those negation and do not understand the conditions.
Each one of this functions returns a List of entities. If I call this functions individually they return their values ok. But what I want is to make only one call to the service and no several! I want to be able to receive it in another application like this:
Possible Duplicate: VB.NET Function Return If I have a function that returns a boolean, what is the difference between:Return False and Function = False
I am currently using a C .dll file in my vb.net project, and need to access a string that it returns (as a pointer to a char array). How can I access this?
Private Declare Function src_error Lib "libsamplerate.dll" (ByVal err As Integer) As (???) 'i've tried intptr, string, integer, none work <MarshalAs(UnmanagedType.LPTStr)> Dim ptr As String
...and then in the actual function,
ptr = src_error(6) 'returns an error based on what combination of things I've tried
I am converting C# code to VB.Net and the C code has this above the function:[return: System.Xml.Serialization.XmlElementAttribute("Name", IsNullable=true)]
1. How to return the variable name itself? Public Class test Public Shared as String = "111" End Class I want to return AAA but no 111, test. = "111", and test. Tostring = "111"
2. I want to join the space char into the variable, for example A B but no AB, how to do?
Dim r = gRef.MeasureCharacterRanges("123456", SystemFonts.CaptionFont, New RectangleF(PointF.Empty, New SizeF(Single.PositiveInfinity, Single.PositiveInfinity)), StringFormat.GenericDefault)
I'm connecting my program to some external code. I'm setting it up so that the external code can instance objects and I've come across a problem. I've created this function here:
[Code]...
I'm trying to create a System.Diagnostics.Process object. For what ever reason though, it always return Nothing instead of the object. Does anybody know what I'm doing wrong? I'm doing this in VB.net so all .net responses are accepted :)
How can I return a string from c++ dll to VB? I want to return a string through return value, not param.So many times, googling but i couldn't find the solution.Here is my sample code, but when the function(testBSTR()) is called,the sample program is crashed.[code]