Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DISABLE MOUSE FROM BEING USED IN CERTAIN TEXT BOXES

Status
Not open for further replies.

TNN

Programmer
Sep 13, 2000
417
US
I have a form with 180 text boxes on it. How do I keep the user from not being able to use the mouse in certain or particular text boxes, but is able to use the mouse in others.
Any help is appreciated.
TNN, Tom
TNPAYROLL@AOL.COM

TOM
 

Well I think you can change the properties of text box
like this:

locked = true
enabled= false

try, I think this will solve you problem.
 
Alternativey, there is a MouseDown event on a textbox. Depends on what you want to allow the user to do. If you simply do not want them to use the mouse to ensure that they follow the tab order the mousedown event will capture this. If, on the other hand, you do not want them to be able to enter anything in the textbox then you should use the locked property.
 
DSJ1967,
Thank you, That is exactly what I want to do, that is ensure that the user follow the tab order.
Now that I have the MouseDown event what code do I put there to cancel the event and keep that text box from getting the focus. This is probably a dumb question but the answer eludes me.
Thank You,
TNN, Tom
TNPAYROLL@AOL.COM

TOM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top