Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

I'm trying to detect when a user clicks the right mouse button.

I've tried various bits of code, but only got this far

Sub OnMyControlButtonUp(ByVal sender As object, ByVal e As MouseEventArgs)

If e.Button = MouseButtons.Right Then

MsgBox("HI") ' other code to execute

end if

End Sub

 

but errors saying MouseeventArgus is not defined. From what i have found so far the import namespace for this is System.Windows.form.

Any help welcome. as i've jumped in at the deep end and can't work it out.

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...