problem with textbox.focus()
hi
this because focus() set focus textbox. instead use following
private void button1_click(object sender, eventargs e)
{
if (textbox1.focused==true)
{
textbox1.text = textbox1.text + 1;
}
else if (textbox2.focused == true)
{
textbox2.text = textbox2.text + 1;
}
}
sampada
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment