|
-
September 5th, 2001, 03:34 PM
#1
Diabling or removing the right mouse click option on a Control
Hi All,
IS there a way to disable or removed the right mouse click option on a Control ie. when using the control on VB form.
Thanks
-
September 5th, 2001, 04:28 PM
#2
Re: Diabling or removing the right mouse click option on a Control
In many cases (not all) you can use the mousedown event of the control to detect that the right button was clicked. When this happens, disable the control, and enable it again.
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
-
September 6th, 2001, 07:32 AM
#3
Re: Diabling or removing the right mouse click option on a Control
Hi There,
I've tried using the mousedown event on this control, but it doesn't work, I've tried on other controls before and it works. So, there is not a solution to this?
Beth
-
September 6th, 2001, 07:41 AM
#4
Re: Diabling or removing the right mouse click option on a Control
I'm not sure, what control are we talking about?
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
-
September 6th, 2001, 08:55 AM
#5
Re: Diabling or removing the right mouse click option on a Control
It's a date user control.
-
September 6th, 2001, 09:01 AM
#6
Re: Diabling or removing the right mouse click option on a Control
Date user control, like in "Microsoft Calender Control" or like in "Some third party usercontrol"?
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
-
September 7th, 2001, 07:50 AM
#7
Re: Diabling or removing the right mouse click option on a Control
It is a third party control contains a calendar control and a text box. The RaiseEvent for mousedown and mouseup is done for the usercontrol only. Is that a problem.
Thanks
-
September 7th, 2001, 07:54 AM
#8
Re: Diabling or removing the right mouse click option on a Control
What you need to do is to put the code in the mousedown event of each of the controls on the usercontrol.
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|