Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Send application to front.

Status
Not open for further replies.

lawlegacy

IS-IT--Management
Jun 5, 2006
53
US
Let's say I have many different applications open and the vb app is somewhere behind them. On a certain event, I want the application to come to the front of the screen.

can this be done?
 
first rule of GUIs:

NOTHING SHOULD EVER POP UP IN FRONT OF THE CURRENT WINDOW.

or, less shoutily, nothing should change the focus unexpectedly.

not all your users use the mouse all the time. if your app pops up and i am typing, what is the worst damage could i do?

you should look into those notification windows that pop up bottom right by default in XP and later.

that being said, you could look at the Activate method of a window (this should pop it up over most things) or the TopMost property and/or HWND_TOPMOST, but don't tell anyone i told you. of course other apps know about this and you'll have to fight them for topmost position.

good luck,


mr s. <;)

 
Thank you! activate and topmost does the trick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top