解决方案 | vbnet的msgbox 窗口最前置,topmost属性设置
For that you can use the TopMost Property of MsgBox (Number 262144)
MsgBox("Hello there", 262144, Title:="Out of focus")
Edit: Another way to accomplish this is creating a temporary form
Using form = New Form() With {.TopMost = True}
MessageBox.Show(form, "Hello there", "Out of focus")
End Using
使用选项
262144即可前置窗口,也就是 topmost
MsgBox("Hello there", 262144, Title:="Out of focus")
参考资料
https://stackoverflow.com/questions/20657991/vb-net-and-mb-topmost-for-dialogs