Question Hiding and showing a window

Haxaro

Well-known member
Joined
Mar 13, 2009
Messages
105
Programming Experience
1-3
I was just googleing this, and i came across this code:

VB.NET:
Dim p As New System.Diagnostics.Process
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
p.StartInfo.CreateNoWindow = True
p.StartInfo.UseShellExecute = True
p.StartInfo.FileName = "cmd.exe"
p.Start()

Does that mean that i could show it again? if so, is there a code that can do this?

Also, if i wanted to get the window that the user is currently in, how would i be able to hide that?

thanks
 
If you want to implement hotkeys then you should use the functionality built into Windows for the purpose. There is a RegisterHotkey API and an UnregisterHotkey API. I'm sure a search will turn up examples.
 
Ive already got my hotkeying to work, and it works fine. im just wondering how i can fix up the other problems that i specified:

1) Stop the application hiding the destkop
2) Keep all windows as they are when they were hidden (Maximised, adjusted size, etc)
3) Bring the shown window to the front, instead of keeping it at the layer it was before it was hidden
4) Select the second top most window, and make it the topmost after the topmost window is hidden.
 
Back
Top