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
标签:form,msgbox,there,focus,topmost,262144,vbnet,Hello
From: https://www.cnblogs.com/issacnew/p/18241786