Not Focus in TextBox
I have a textbox and i want when my form load textbox dosen't have focus how i can do it?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MaharajePosted Aug 17, 2009, 9:26 PM
Thank you
Master BillaPosted Aug 17, 2009, 1:26 PM
You can do in easier way
private void Form1_Load(object sender, EventArgs e)
{
this.Focus();
}
thank you
MaharajePosted Aug 17, 2009, 8:58 AM
i'm sorry i was sleepy and didn't understand you very good
you are right
MaharajePosted Aug 16, 2009, 11:51 PM
i can't change my control because i have to use TextBox the user is going to type in it BUT i don't want none of my TextBoxes have focus
How I can do it?
Master BillaPosted Aug 16, 2009, 10:09 PM
I hope you are doing in windows form application, then you need to do like this way
private void Form1_Load(object sender, EventArgs e)
{
txtName.Focus();
}