Button Visibility And Control Focus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to toggle the visibility a command button based on whether or not
another text box has focus - like the 'Build' buttons found in the Properties
window. The only problem is, if I use the text box's OnGotFocus/OnLostFocus
to set the visibility, I can't actually click the command button because it
loses visibility has soon as it gains focus. Any suggestions would be much
appreciated.
 
That's a good idea for one text box/button, but what if you had multiple text
boxes/buttons on a page?
 
Each button is associated with its own text box, and is used to open a form
that shows more information about the item in the text box.
 
If you don't want to make a lot of coding you should use some alternative
ways. For example, you can use the OnDblClick property of the text box to
open the form and set the ControlTipText property of the text box as follows:
"Double-click to view the details" or something like this.
Just try to forget about using a button and invent something...
Good luck!
 
Back
Top