I want to Set focus of combo from Textbox
-
I have one textbox when user come to textbox, means Textbox_Enter then The Control Transfer (Focus) to Combobox and User Select Value From Combo and The value is Replaced in Textbox. I am not Getting Focus to Combo.
Best Regards, Chetan Patel
-
I have one textbox when user come to textbox, means Textbox_Enter then The Control Transfer (Focus) to Combobox and User Select Value From Combo and The value is Replaced in Textbox. I am not Getting Focus to Combo.
Best Regards, Chetan Patel
Both of these work for me.
private void textBox1_Enter(object sender, EventArgs e)
{
comboBox1.Focus();
}textBox1.GotFocus += new EventHandler(textBox1_GotFocus);
void textBox1_GotFocus(object sender, EventArgs e)
{
comboBox1.Focus();
}Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)