tap-and-hold event

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
 
S

Steven Licciardi

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top