CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Keeping the Window always on top

    HI all,

    From Vb Application, i'm calling a form and keeping it always top of other forms by using the API Call
    SetWindowPos(). But if i open any another application from windows start menu, the form which is being kept on top
    is still remaining the top of the other application also............

    How to keep it background which i open any other application ? Pls help me in this regard............

    it's vary urgent pls..........


    Thanks
    Ramu



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Keeping the Window always on top

    if you want your form to stay on top use the SetWindowPos API with the HWND_TOPMOST flag, as you already did.
    If don't want that, you can always use the Form's ZOrder method to bring the form window to the foreground of the current app. Don't use SetWindowPos in this case.


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

Featured