A quick Fix?

Jonno

Registered User.
Local time
Today, 07:02
Joined
Mar 17, 2003
Messages
74
Does anyone have a solution for this small problem?

When building a form, how can you completely exclude a cursor from appearing in a control, either a text box or button anywhere on the form?
I have set all the controls Tab settings to Off, but the form will still have a cursor / set focus to one control when form is opened. Can this be turned off for the sake of the forms aesthetic value?
in other words, I would like no text box to have a cursor, until one is selected . (Access 97) Maybe there is a quick code fix for this I can put in the forms properties......?
 
Hi

If you really want to do this create a small txt box set its tab val to 0 and hide it on your form. When the form opens the cursor will go to this box. When i mean hide it i don't think you can set the focus to an invisible object so stick it under another box.

Chris
 
If you do that though, when it gets the focus, it will come to the front and will be visible.
 
Hey Jonno,

Something must always have the control - there is really no way around this! What you can do though is set one of the buttons to have Tab Index 0 (it will be distinguished by a dotted square within the button which is not as obvious).

Really though - you should think of usability before aesthetics I would say! The whole idea of the focus (tab index) is form control to help your users - ie if First Name is the first field most people would enter on your form - then that textbox should have the cursor there when it's opened.

Hope that helps!

-Sean
 
Last edited:

Users who are viewing this thread

Back
Top Bottom