Hide() and Show()

  • Thread starter Thread starter oldsap
  • Start date Start date
O

oldsap

Hi, ive created a VB Smartphone WM5 application with a me.hide()
command. how do i "show" the application again when i click on the exe
file? does anyone have a sample code snippet for this? Thank you.
 
You're only hiding the Form, and it's not closing? The apps acting as if it
closed the Form but a thread is running keeping the process alive. Use
Spy++ to see if the Form is still really valid.

-Chris
 
Time to start learning a few new things...

I think that the problem is that you have completely hidden the form and
there's no event that will occur to show it again. If you want to do the
same as smart minimize, I posted the code to do that yesterday.

Paul T.
 
Here are my declarations for SetWindowPos and the constants.

Paul T.

-----

[DllImport("coredll.dll")]
private static extern UInt32 SetWindowPos(
IntPtr hWnd,
IntPtr hWndInsertAfter,
int X,
int Y,
int cx,
int cy,
SetWindowPosFlags uFlags
);

[Flags()]
internal enum SetWindowPosFlags
{
SWP_FRAMECHANGED = 0x0040,
SWP_HIDEWINDOW = 0x0080,
SWP_NOACTIVATE = 0x0010,
SWP_NOMOVE = 0x0002,
SWP_NOOWNERZORDER = 0x0200,
SWP_NOSIZE = 0x0001,
SWP_NOZORDER = 0x0004,
};
 
Back
Top