tap-and-hold event

  • Thread starter Thread starter Salazaar
  • Start date Start date
S

Salazaar

Hi,

I am trying to create a custom control using the .net framework sdk. I want
a context menu to popup when the control is clicked. Right now, the context
menu pops up only when the user taps and holds the stylus for a while. How
do I make this happend when the control is clicked instead of tapped and
held?

Any ideas?

Regards
 
You can use the ContextMenu.Show method to display a ContextMenu.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
ContextMenu1.Show(Button1, New Point(0, 0))
End Sub

Steven
 
Back
Top