Click here to Skip to main content
15,920,627 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I make the cursor move into a textbox after I've checked a checkbox?
Posted
Updated 15-Jun-10 8:52am
v2

What is your question? Your messge does not make sense. :confused:
 
Share this answer
 
private void checkBox_CheckedChanged(object sender, EventArgs e)
{
TextBox1.Focus();
}
 
Share this answer
 
Hi Ramakrishna,
Please ask the question more understandable.I think your requirement is to set the cursor on a specific textbox after clicking the checkbox.For doing this, Add the event handler for Click event of check box and call the textbox's Focus event inside the event handler

C#
private void checkBox1_Click(object sender, EventArgs e)
   {
     urTextboxName.Focus();
   }


Vineeth
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900