Setting focus on first control of Windows form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In Windows application,I have four buttons on Windows form. When I run, it
doesn't show focus on first button.
 
"Dharmendra vithal Pandit" <Dharmendra vithal
(e-mail address removed)> wrote in message
In Windows application,I have four buttons on Windows form. When I run, it
doesn't show focus on first button.


Either you can set focus explicitly by calling button.Focus()
or you can set the form's AcceptButton to one of the buttons on your form
or you can change the taborder of your form.
 
Have u set TabIndex for buttons and TabStop propery to true.
This will solve your problem
 
Have u set TabIndex for buttons and TabStop propery to true.
This will solve your problem
 
Back
Top