CompuServe Messages

#SetFocus Bug

    16-Oct-91 05:26:09
Sb: #3343-#SetFocus Bug
Fm: Mark Novisoff/MicroHelp 73047,3706
To: Jerry Stern 70023,276
Jerry, The problem is that you cannot use .SetFocus until the form (and hence the control) is visible. There are two solutions to your situation: 1. Place a Show statement at the top of your Form_Load proc 2. Give the desired control a TabIndex of 0 – that will cause it to get the focus automatically when the form is loaded. Mark There is 1 Reply.