Results 1 to 2 of 2

Thread: where are the gurus, who can help me????

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Posts
    135

    Exclamation

    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.

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986

    Thumbs up

    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!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width