Aug 17th, 2009, 02:23 PM
#1
Thread Starter
Hyperactive Member
Double Click On Form
I have this:
vb Code:
Private Sub ImageShop_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DoubleClick
openFile.ShowDialog()
End Sub
Which is supposed to show my dialog box when someone double clicks on the form, but that doesn't work.
I have a menu item that is single click, and that works fine...
So... Why doesn't the double click work when someone double clicks on the form?
I am still very new to VB.NET, so I have MANY questions
Aug 17th, 2009, 02:41 PM
#2
Re: Double Click On Form
Is ImageShop the name of your form? Make sure that they are double clicking on the form and not on some control contained in the form.
Aug 17th, 2009, 02:44 PM
#3
Thread Starter
Hyperactive Member
Re: Double Click On Form
Yes, it is the name of the form, and the form is empty when it loads, so when someone double clicks on the form portion, nothing happens.
I am still very new to VB.NET, so I have MANY questions
Aug 17th, 2009, 02:44 PM
#4
Re: Double Click On Form
since it's handling Me.DoubleClick... doesn't matter what the name of the form is...
But otherwise I'd agree... make sure you are double-clicking the form, and not another control.
-tg
Aug 17th, 2009, 03:50 PM
#5
Addicted Member
Re: Double Click On Form
Have you tried to insert a break point to make sure the program even gets to that sub?
Aug 17th, 2009, 03:55 PM
#6
Thread Starter
Hyperactive Member
Re: Double Click On Form
Nope, it doesn't get to the double click event
here is what the screen looks like when I double click on the gray:
Attached Images
I am still very new to VB.NET, so I have MANY questions
Aug 17th, 2009, 04:14 PM
#7
Re: Double Click On Form
is that a normal form? Or is that an MDIParent form?
-tg
Aug 17th, 2009, 04:17 PM
#8
Thread Starter
Hyperactive Member
I am still very new to VB.NET, so I have MANY questions
Aug 17th, 2009, 04:30 PM
#9
Re: Double Click On Form
that's why it isn't working... that's not the form you are clicking on... there's a special hidden control on there that is the MDI Container... I don't know off hand if it exposes events like the form does...
It's going to take some research...
-tg
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width