Triggering TAB key programmatically?
-
Hi All **********Programmin Challenge************** I am developing a desktop application in C#.Net which opens another form of an unmanaged application. The WinForm(of unmanaged application) has number of controls on it .Textbox has a focus when application starts.I just want to focus on the third control which is a button by programmatically pressing the tab key SendKeys.SendWait(Keys.Tab.ToString()); //for taking focus on second control SendKeys.SendWait(Keys.Tab.ToString()); //for taking focus on the desired button which has a tabindex=2(0,1,2)ie third control It is not taking the focus from the textbox to the button but instead typing in the textbox "Tab". Thanks in advance Sandeep Kalra I am the ONE
-
Hi All **********Programmin Challenge************** I am developing a desktop application in C#.Net which opens another form of an unmanaged application. The WinForm(of unmanaged application) has number of controls on it .Textbox has a focus when application starts.I just want to focus on the third control which is a button by programmatically pressing the tab key SendKeys.SendWait(Keys.Tab.ToString()); //for taking focus on second control SendKeys.SendWait(Keys.Tab.ToString()); //for taking focus on the desired button which has a tabindex=2(0,1,2)ie third control It is not taking the focus from the textbox to the button but instead typing in the textbox "Tab". Thanks in advance Sandeep Kalra I am the ONE
Sendkeys.Send("{TAB}") and arrange your tab order in the IDE
Life - Dreams = Job TheCardinal CTC-RDG