Closed Thread
Results 1 to 4 of 4

Thread: Always on Top

  1. #1
    RobSoftware is offline Programmer
    Join Date
    Nov 2005
    Posts
    143
    Rep Power
    0

    Exclamation Always on Top

    Hello,
    Use to you could make a form always on top using SetParent(). How do you do it now in the new .net language????

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    Here is the code:

    ' Visual Basic
    Public sub MakeOnTop()
    myTopForm.TopMost = True
    End Sub

    // C#
    public void MakeOnTop()
    {
    myTopForm.TopMost = true;
    }

    // C++
    public:
    void MakeOnTop()
    {
    myTopForm->TopMost = true;
    }



    Taken from:
    http://msdn.microsoft.com/library/de...opmostform.asp

  4. #3
    Lop's Avatar
    Lop
    Lop is offline Speaks fluent binary
    Join Date
    May 2006
    Posts
    1,178
    Rep Power
    30
    It is also on each window form.

  5. #4
    NeedHelp Guest
    What is also on each window form? You mean the property is in the window form?

    I just set the property to true in each form. I've never had a need to make always on top in the program.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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