pokemon Posted July 10, 2003 Posted July 10, 2003 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 Quote
*Experts* mutant Posted July 10, 2003 *Experts* Posted July 10, 2003 You need JavaScript to do this kind of client side work: http://www.w3schools.com/js/tryit.asp?filename=tryjs_noright http://www.w3schools.com/js/tryit.asp?filename=tryjs_noright2 Quote
pokemon Posted July 10, 2003 Author Posted July 10, 2003 Fair enough. I'd done it before on an asp Page using javascript, but was just curious to see if it was possible using .NET Cheers. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.