如何保持输入框始终位于最前面 [英] How to keep input box always on top

查看:194
本文介绍了如何保持输入框始终位于最前面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个应用程序,当我按下某个按钮时,应该在屏幕上出现一个输入框.但是我面临的问题是输入框始终位于应用程序下方.
有什么方法可以使输入框始终位于所有应用程序的顶部吗?

谢谢

Hi,

I have an application in which an input box is supposed to come up on the screen when i press a certain button. But the problem that i am facing is that the input box always comes below the application.
Is there any way to keep the input box always on top of all the applications ?

Thanks

推荐答案

认为这是Windows.Forms,如果对话框在您的应用程序下,则应定义所有者.请参阅: Form.ShowDialog [ TopMost [
Taken this is Windows.Forms, if the dialog goes under your application, you should define the owner. See: Form.ShowDialog [^]

You can also set the TopMost[^] property to force the dialog on the highest level in Z-order.


InputBox始终位于VB.NET的最高位置.
要进行检查,创建一个新表单并在加载表单时显示InputBox,您可以看到,直到关闭InputBox为止,您无法在该表单上工作,从中可以显示InputBox
InputBox always comes on topmost position for VB.NET.
TO check it out, create a new form & show InputBox on form load, you can see until you close the InputBox you cannot work on that form, from which InputBox is shown


可能不理想

me.hide()
text = inputbox(输入密码.." ,,,,)
me.show()
me.update()
This works but is probably not ideal

me.hide()
text=inputbox("enter the password ..",,,,)
me.show()
me.update()


这篇关于如何保持输入框始终位于最前面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆