B
Brian Henry
Hi,
I am looking at the project at
http://vbaccelerator.com/home/NET/Code/Libraries/Windows/MDI_Client_Area_Painting/article.asp
and i'm trying to convert it to VB.net
right now im in the file MDIClientWindow.cs and the following but of code
does not work...
#Region "EnumWindows Code"
Private Sub GetWindows(ByVal hWndParent As IntPtr)
Me.UnManagedMethods.EnumChildWindows(hWndParent, New
EnumWindowsProc(AddressOf Me.WindowEnum), 0)
End Sub
Private Function WindowEnum(ByVal hWnd As IntPtr, ByVal lParam As Integer)
As Integer
Return 1
End Function
#End Region
where the new EnumWindowsProc(address of me.WindowEnum) is i keep getting a
signature mismatch error (which there is one) but in C# this does not happen
in their project... the WindowEnum function looks like it needs to return a
integer 1 or 0 but the EnumWindowsProc does not want a value returned....
how would you convert this?! thanks
I am looking at the project at
http://vbaccelerator.com/home/NET/Code/Libraries/Windows/MDI_Client_Area_Painting/article.asp
and i'm trying to convert it to VB.net
right now im in the file MDIClientWindow.cs and the following but of code
does not work...
#Region "EnumWindows Code"
Private Sub GetWindows(ByVal hWndParent As IntPtr)
Me.UnManagedMethods.EnumChildWindows(hWndParent, New
EnumWindowsProc(AddressOf Me.WindowEnum), 0)
End Sub
Private Function WindowEnum(ByVal hWnd As IntPtr, ByVal lParam As Integer)
As Integer
Return 1
End Function
#End Region
where the new EnumWindowsProc(address of me.WindowEnum) is i keep getting a
signature mismatch error (which there is one) but in C# this does not happen
in their project... the WindowEnum function looks like it needs to return a
integer 1 or 0 but the EnumWindowsProc does not want a value returned....
how would you convert this?! thanks