Button Visibility And Control Focus

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.
 
G

Guest

That's a good idea for one text box/button, but what if you had multiple text
boxes/buttons on a page?
 
G

Guest

Please, describe the purpose of the control button so that we could work out
the problem.
 
G

Guest

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.
 
G

Guest

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top