-
I run my vb program in a dos shell under windows in full screen mode. When the vb program runs it minimizes the dos window to the task bar. Then when i quit my vb program, it doesnt get focus on the dos window and open once again to full screen mode. The way i exit the vb program is unload me and then followed by end. Can someone help me here. I need to be able to return to the full size dos screen once i have finished working with my vb program. Please reply asap.. thanks.
-
I think you should...
...send messages to the window
Via the API, you shell the prog via your prog right? Then you don't need the FindWindow api.
shell it like this:
MyHwnd = Shell(Prog,blabla)
and Send a (I believe it was:) <Shift> Character to gain focus, and the I believe you can send a WM_Maximize to the window to maximize it.
I ain't no guru so I think anyone else can explain you the details/exact syntax for the API's. (I've only used FindWindow)
Good Luck!