Results 1 to 4 of 4

Thread: [RESOLVED] Form on top of other application

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Resolved [RESOLVED] Form on top of other application

    hi guys! i have form2 on my project and i want it to always on top of any other open application like MS Office,IE, etc..and appears right on top of the system tray. Can anybody please help me to do this. Any inputs will be greatly appreciated.

  2. #2

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Form on top of other application

    Code:
    Rectangle workingArea = Screen.PrimaryScreen.WorkingArea;
    Form f = new Form();
    
    f.TopMost = true;
    f.StartPosition = FormStartPosition.Manual;
    f.Location = new Point(workingArea.Width - f.Width, workingArea.Height - f.Height);
    f.Show();
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Re: Form on top of other application

    Thanks guys! that helps me a lot.

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