I Can't capture form events

falled

Member
Joined
Sep 16, 2006
Messages
20
Programming Experience
Beginner
Help

I'm newbie

I've got an application with a panel on the center
and a label

Private Sub Panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown
panelMouseClick =
True
Label1.Text = "inside click"
End Sub

all ok

but if I try to do this

Private Sub Main_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseClick
Label1.Text =
"outside click"
End Sub

it doesn't works

WHY?
 
I couldn't see any reason why it shouldn't work. it should work as you expected. I tried here just in case but it worked just fine and if you want i can attach it in the next reply but i asssure you that it works properly.
Hey be sure that you do not click the panel when you think that you click the form's area setting the panel's border style to either Fixed3D or FixedSingle. Then you'll know exactly where you perform the click. Inside or outside the panel.

HTH
Regards ;)
 
Back
Top