Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello!
I am using Miscrosoft Visual Studio 2005.

I made a form. How do I always make it the top window so it will always be seen even when i open other windows?

Thanks in advance!
Posted
Updated 11-Jun-16 23:41pm
Comments
Sergey Alexandrovich Kryukov 26-May-14 2:11am    
What's wrong with just reading of the standard MSDN documentation?
And don't ask about "Visual Studio 2005", ask about .NET v.2.0. Do I even have to explain why?
—SA
Member 11329529 6-Feb-23 7:34am    
Don't talk in this way to other people. Stop it.
karthik Udhayakumar 26-May-14 2:13am    
Check this,
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.topmost%28v=vs.80%29.aspx

If you are in same form on form load you can do

VB
Me.TopMost = true;


else if you are doing the same from a different form while opening then,

VB
MyForm.TopMost = true.



Hope this will be of help for you to keep a form above all in Windows forms application.

Also this may be of help for you :- http://support.microsoft.com/kb/184297[^]
 
Share this answer
 
v2
See the property System.Windows.Forms.Form.TopMost. Here is how: http://msdn.microsoft.com/en-us/library/system.windows.forms.form.topmost%28v=vs.80%29.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900