On MouseUp problems

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi!
I've have a app for Pocket PC done in Microsoft Visual
Basic .NET 2003.
I want to use the MouseUp event but it seems not to work.

For an example, I cant do this:
Private Sub btnTest_MouseUp(ByVal sender As Object, ByVal
e As System.Windows.Forms.MouseEventArgs) Handles
btnTest.MouseUp
MsgBox("Test")
End Sub

I've tried KeyUp as well, but it fails to...
What can be wrong?

Thanks, Mike
 
Hi Mike,
Is your button directly on the form, or is it nested
within a panel? I found that when I place a panel on a
form, then place a control on that, I have to trap mouse
events at the form level and propogate them to the control.

Hope this helps,
Dean
 
Mouse and keyboard event are not implemented on certain intrinisic controls,
including, but not limited to Button
 
Back
Top