G
Guest
Hi friends ,
here is the sample code
private void txtbox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if(e.KeyChar == 13) //enter
{
txtbox2.Focus();
}
if(e.KeyChar == 27) //escape
{
txtbox.Text = "";
}
if(e.KeyChar == 37)// LEFT ARROW KEY /*here the control is not coming inside*/
{
txtboxAdjacent.Enabled = true;
txtboxAdjacent.Focus();
}
}
In the above code when executed the control is not coming inside the if(e.KeyChar == 37) loop when i pressed
left arrow key on keyboard;
how to implement the Arrow Keys in the KeyPress_event or in any other event?
hey guys plz help me out this.
-------------@@@@@@@@@@@@@---------------------------------------------------
here is the sample code
private void txtbox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if(e.KeyChar == 13) //enter
{
txtbox2.Focus();
}
if(e.KeyChar == 27) //escape
{
txtbox.Text = "";
}
if(e.KeyChar == 37)// LEFT ARROW KEY /*here the control is not coming inside*/
{
txtboxAdjacent.Enabled = true;
txtboxAdjacent.Focus();
}
}
In the above code when executed the control is not coming inside the if(e.KeyChar == 37) loop when i pressed
left arrow key on keyboard;
how to implement the Arrow Keys in the KeyPress_event or in any other event?
hey guys plz help me out this.
-------------@@@@@@@@@@@@@---------------------------------------------------