Hi i am making a window application
in which i want to know that when my application is start, so it should automatically get focus on textBox, how can i do that.........
Kindly help me in this...............?
avirag
10
Posting Whiz
Recommended Answers
Jump to PostIf you are using Visual Studio you can edit the tab order of the controls.
The TextBox with the lowest tab order will recieve the focus.
Select tab order editing in the View menu.
Jump to PostHi Avirag,
You can use the following code on form_load event :this.textBox1.Focus();
Hope it works............
GudLuck
All 6 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
avirag
10
Posting Whiz
ddanbe
2,724
Professional Procrastinator
Featured Poster
vinnijain
0
Junior Poster
avirag
10
Posting Whiz
avirag
10
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.