|
-
Jan 6th, 2007, 01:09 PM
#1
Thread Starter
Lively Member
[RESOLVED] assigning focus
this is probably a silly question but how do you assign focus to an object on the load of a form?
-
Jan 6th, 2007, 01:11 PM
#2
Re: assigning focus
You can't on load, try control.SetFocus on form activate instead.
-
Jan 6th, 2007, 01:14 PM
#3
Re: assigning focus
Actually you can do it on load.. you just need to show the form (Me.Show) before issuing the Setfocus.
An alternative is to change the TabIndex of the control(s) in design time.. the one with a TabIndex of 0 will be the one that automatically gets focus when the form loads.
-
Jan 6th, 2007, 01:16 PM
#4
Thread Starter
Lively Member
Re: [RESOLVED] assigning focus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|