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
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
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
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
Re: Diabling or removing the right mouse click option on a Control
It's a date user control.
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
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
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