G
Guest
I am developing an application with VB .Net on a Win CE 4.1 Symbol device. I
am continuing to have a problem with some code. Here is what I am using:
Private Declare Function FindWindow Lib "coredll" Alias "FindWindowA"
(ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr
Private Declare Function ShowWindow Lib "coredll" (ByVal hWnd As IntPtr,
ByVal nCmdShow As Long) As Long
In the form load event...:
dim OurParent as IntPtr
OurParent = FindWindow("HHTaskbar", String.Empty)
ShowWindow(OurParent, 5)
I am getting an error of MISSING METHOD EXCEPTION when findwindow is called.
What am I doing wrong and what do I need to change?
Thanks,
Brian
am continuing to have a problem with some code. Here is what I am using:
Private Declare Function FindWindow Lib "coredll" Alias "FindWindowA"
(ByVal lpClassName As String, ByVal lpWindowName As String) As IntPtr
Private Declare Function ShowWindow Lib "coredll" (ByVal hWnd As IntPtr,
ByVal nCmdShow As Long) As Long
In the form load event...:
dim OurParent as IntPtr
OurParent = FindWindow("HHTaskbar", String.Empty)
ShowWindow(OurParent, 5)
I am getting an error of MISSING METHOD EXCEPTION when findwindow is called.
What am I doing wrong and what do I need to change?
Thanks,
Brian