Jump to content

Always on Top

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
RobSoftware

RobSoftware

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
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
Guest_Jordan_*

Guest_Jordan_*
  • Guests
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.microsof...topmostform.asp

#3
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
It is also on each window form.

#4
Guest_NeedHelp_*

Guest_NeedHelp_*
  • Guests
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.