Results 1 to 4 of 4

Thread: Move a form to top

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840

    Angry

    My app checks data from a winsock connection and if certain information arrives then I want to raise an alert.

    The app sits in systray and I want it to spawn a new form to alert the user.

    The problem I am having is I need it to be "on top" of every thing else when it appears. It doesn't need to be 'always on top' it just has to appear there. At the moment if you are reading email and the alert triggers the form appears but you can only see it on the task bar, it doesn't have focus so that it appears in front of the email (or whatever) software.

    is the only way to do it make it "Always on top" temporariy? I'm sure there is an API call at least which can send a form to the top of the Z order...

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    you could use the code here:
    http://www.vb-world.net/tips/tip4.html
    to set the window on top and then set it not on top afer a short delay
    Mark
    -------------------

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Yeah, that's what I was thinking but it seems a bit of an overkill for a popup effect.

    thanks for the link the though
    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Japan
    Posts
    840
    Any other ideas ?

    Anyone?

    Paul Dwyer
    Network Engineer
    Aussie In Tokyo

    Using Powerbasic 6 & VB6 SP4 (Please also add your VB Version to your signature!)

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