Setting the focus on a text box

  • From: "Celia Rodriguez" <celia-rodriguez@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 6 Dec 2009 12:39:06 -0000

Hi Everyone,

 

Thanks to all who have answer my questions.

One more.

 

How do I set the focus back to a text box after a message has been issued?

 

Example 

If (txtFirstName == " ")

 

MessageBox.Show("Please enter a first name.");

                FirstName  how do I set the focus?

 

Thanks,

Celia

Other related posts: