On 1 Set, 22:43, kimiraikkonen <kimiraikkone...@gmail.comwrote:
Look at this MSDN link and scroll down to "Possible VB9 decleration"
if it works for SetWindowLong:http://msdn.microsoft.com/en-us/libr...91(VS.85).aspx
Hope this helps,
Onur G.
I'm trying:
<DllImport("user32.dll", EntryPoint:="SetWindowLongA")_
Public Function SetWindowLong(ByVal hWnd As IntPtr, ByVal nIndex
As Integer, ByVal dwNewLong As [Delegate]) As IntPtr
End Function
<DllImport("user32.dll", EntryPoint:="SetWindowLongA")_
Function SetWindowLong(ByVal hwnd As Integer, ByVal nIndex As
Integer, ByVal dwNewLong As Integer) As Integer
End Function
lProcOld = SetWindowLong(CType(Me.TextBox1.Text, IntPtr), GWL_WNDPROC,
AddressOf WndProcz)
I receive error: can't convert addressof in system.delegate because
system.delegate is declared as "mustinherit" and it is impossible to
create it....
Any ideas?