Click to See Complete Forum and Search --> : Diabling or removing the right mouse click option on a Control


Beth Poka
September 5th, 2001, 03:34 PM
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

Cakkie
September 5th, 2001, 04:28 PM
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
slisse@planetinternet.be

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

Beth Poka
September 6th, 2001, 07:32 AM
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

Cakkie
September 6th, 2001, 07:41 AM
I'm not sure, what control are we talking about?

Tom Cannaerts
slisse@planetinternet.be

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

Beth Poka
September 6th, 2001, 08:55 AM
It's a date user control.

Cakkie
September 6th, 2001, 09:01 AM
Date user control, like in "Microsoft Calender Control" or like in "Some third party usercontrol"?

Tom Cannaerts
slisse@planetinternet.be

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

Beth Poka
September 7th, 2001, 07:50 AM
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

Cakkie
September 7th, 2001, 07:54 AM
What you need to do is to put the code in the mousedown event of each of the controls on the usercontrol.

Tom Cannaerts
slisse@planetinternet.be

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