I designed an infopath form and User will use this form with Active directory authentication For this Reason, i designed a windows form.This windows Form's coding is C#.i have 3 controls on forms,textbox1,textbox2,button1(Entering)
UserName:textbox1 control
Password:textbox2 control
Entering Button
but i cant use keyboard fonction expecially tab and enter keys.only use mouse.
Form events KeyDown events code is
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
button1_Click(null,null);
}
}
and Form properties AcceptButton:button1 i set but when i started form i cant use keyboard function in infopaht how can i solve this problem please help me