表格总是在顶部? (VB.net) [英] Form always on top? (VB.net)
本文介绍了表格总是在顶部? (VB.net)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好!
我正在使用Miscrosoft Visual Studio 2005.
我做了一个表格。我怎么总是把它作为顶部窗口,所以即使我打开其他窗户也会一直看到它?
提前谢谢!
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!
推荐答案
如果您在表单加载时使用相同的表单,则可以执行
If you are in same form on form load you can do
Me.TopMost = true;
如果你是从另一种形式做同样的事情然后打开,
else if you are doing the same from a different form while opening then,
MyForm.TopMost = true.
希望这对您在Windows表单应用程序中保留最重要的表单有所帮助。
这也可能对您有所帮助: - http://support.microsoft .com / kb / 184297 [ ^ ]
查看属性System.Windows.Forms.Form.TopMost
。方法如下: http:// msdn.microsoft.com/en-us/library/system.windows.forms.form.topmost%28v=vs.80%29.aspx [ ^ ]。
-SA
See the propertySystem.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
这篇关于表格总是在顶部? (VB.net)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文