How can I keep a form at the top of the z order?
Printable View
How can I keep a form at the top of the z order?
I believe there is a TopMost property for that.
Not quite sure what you mean. Objects, including forms, have a "BringToFront" method which can be called whenever the form is accessible.Quote:
Originally posted by wossname
How can I keep a form at the top of the z order?
Jesus, it's hard enough learning VB.net as it is without the buggers thinking of new names for everything!
Thanks dude.
:blush: newbie :blush:
Hi,
Looks like Topmost keeps the form at the front without removing focus from the previous form. Being a property, it's effect is permament until the property is changed. It works even when ShowDialog() was used to reveal the previous form. If you inadvertently set the property of more than one form.Topmost to true, then the one which is in focus remains on top.
BringTo Front is the same as setting focus on the form. Neither will work if the previous form was revealed with ShowDialog().