Results 1 to 1 of 1
2002-06-01, 15:58 #1
- Join Date
- Feb 2001
- Escondido, California, USA
- Thanked 1 Time in 1 Post
Setting Initial Focus (VB 6.0 / W98)
<P ID="edit" class=small>Edited by Chuck Tucker on 01-Jun-02 09:58.</P>Here is my code which initializes a couple of variables and attempts to set focus on the Start command button..
Private Sub Form_Load()
bolChecked = True
bolStarted = False
However, VB indicates that the "cmdStart.SetFocus" is not allowed here.
So how do I set the focus upon loading the form?
Well, I answered my own question -- just set the tab index to zero for the cmdStart button! I feel rather stupid for not thinking of it in the first place!