在我的 vb.net windows 应用程序中,我在MouseMove
event 中编写了一些代码。当我的应用程序运行并且光标进入我的应用程序时,一个会messagebox
弹出并在一秒钟内不可见。我无法阅读其中的内容messagebox
。
任何人都可以帮我摆脱这个不必要messagebox
的有标题.net框架。这是我的代码
Public Class ToolDashboard
Imports System.Configuration
Imports System.Collections.Specialized
Public Class CompassToolDashboard
Dim path As NameValueCollection
Private Sub ToolDashboard_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Location = New Point(Screen.PrimaryScreen.WorkingArea.Width - (Me.Width - 50), Screen.PrimaryScreen.WorkingArea.Height - Me.Height)
path = ConfigurationManager.GetSection("ToolPath")
End Sub
Private Sub ToolDashboard_MouseEnter(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MouseEnter
Me.BringToFront()
While Me.Opacity < 1
Me.Opacity = Me.Opacity + 0.06
End While
End Sub
Private Sub ToolDashboard_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MouseLeave
While Me.Opacity > 0
Me.Opacity = Me.Opacity - 0.001
End While
End Sub
Private Sub CloseForm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseForm.Click, CloseForm.Click
Process.GetCurrentProcess().Kill()
End Sub
Private Sub ShareTool_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VMDashboard.Click
System.Diagnostics.Process.Start(path("IndexGenerator"))
'getting path for Indexgenerator.exe from app.config
'Index generator.exe is present in a remote system
End Sub
End Class