去计划管理那里,打开的如果是命令窗口,就设置其置顶。
Dim frm = Windows.Forms.Form.ActiveFormIf frm IsNot Nothing Then If frm.Name = "Class197" Then End IfEnd If