Disable Focus on Command Buttons

  • Thread starter Thread starter John Michl
  • Start date Start date
J

John Michl

I have a simple form with two command buttons. The user votes for one
of two options by clicking the appropriate button. Currently, when the
form opens it appears that the first button has focus. I don't want
either button to have focus to avoid "leading" the user to one button
over the other.

How can I disable focus on the form?

Thanks.

- John
 
John,
Add a Frame to the form and make it first in the tab order.
Do not place the buttons on it, but place it between the
two buttons and set its height (or width) to ~1.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"John Michl" <[email protected]>
wrote in message
I have a simple form with two command buttons. The user votes for one
of two options by clicking the appropriate button. Currently, when the
form opens it appears that the first button has focus. I don't want
either button to have focus to avoid "leading" the user to one button
over the other.
How can I disable focus on the form?
Thanks.
- John
 
Hi John,

Set the commandbutton with Tabstop = false
like :

Private Sub UserForm_Initialize()
CommandButton1.TabStop = False
End Sub
 

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

Back
Top