disable a control while it has the focus

cuttsy

The Great Pretender
Local time
Today, 23:16
Joined
Jun 9, 2004
Messages
164
I understand that I cannot change control.enabled to false while the control has focus.

Does this mean that if I were to make a form with only one control that can have focus then I cannot disable said control?

I'm used to plain old VB6 and am unfamiliar with this restriction :mad:
 
Just make another control and size it very small.

Check out my mouseoverpopups.zip sample in the OnMouseMove thread for a working example on how I do it with my tbHidden text box...
 
I was hoping that this wasn't the only solotion.


Thanks for your help.
 
Last edited:
Just to clarify; you can set a textbox's width to zero, which is same thing as invisible, but still can be set focus to.
 

Users who are viewing this thread

Back
Top Bottom