G
Guest
When opening a filedialog and the user double-clicks to select a file the
mouseup event is raised on the control behind the dialog. Is there a way to
handle this "bug"?
Code to reproduce (ensure the filedialog is over the form when
double-clicking, maximize?):
Public Class Form1
Private Sub Form1_MouseUp(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp
MsgBox("Bang!")
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim filedialog As New OpenFileDialog
filedialog.ShowDialog()
End Sub
End Class
Thanks
mouseup event is raised on the control behind the dialog. Is there a way to
handle this "bug"?
Code to reproduce (ensure the filedialog is over the form when
double-clicking, maximize?):
Public Class Form1
Private Sub Form1_MouseUp(ByVal sender As System.Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseUp
MsgBox("Bang!")
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim filedialog As New OpenFileDialog
filedialog.ShowDialog()
End Sub
End Class
Thanks