vb.net

Set the focus to a HTML Textbox or Button in a WebBroswer control  #angularjs #reactjs

  • But i dont know the code for triggering the TAB key .
  • On the fourth page of the website, I want to focus the control by triggering the tab key programmatically.
  • give me the html of your page and i try to customize my code.
  • If you want to use the Tabs I can help you, you just use the second method and then the WebBrowser control will have focus.
  • actually there is a button on the 4th page of the website i want to bring the focus control on that button So i am using this code – user1473832 Jun 24 ’12 at 4:31

I am opening a website in a WebBrowser control using VB.NET 2008. On the fourth page of the website, I want to focus the control by triggering the tab key programmatically. I am using the following code:

@ng_real_ninja: Set the focus to a HTML Textbox or Button in a WebBroswer control #angularjs #reactjs

control using VB.NET 2008. On the fourth page of the website, I want to focus the control by triggering the tab key programmatically. I am using the following code:

However, my code is unable to trigger the tab key. Does anyone know how to make this work?

What does “my code is unable” mean? Do you get an error message? What exactly happens? What does it do when you use the debugger with a break point on the

line? – Ken White Jun 24 ’12 at 4:17

Where are you putting this code? – Ryan♦ Jun 24 ’12 at 4:19

Did you need any further clarification? If you want to use the Tabs I can help you, you just use the second method and then the WebBrowser control will have focus. – Jeremy Thompson Jun 24 ’12 at 6:52

but my program is unable to get id – user1473832 Jun 24 ’12 at 10:13

give me the html of your page and i try to customize my code. – RedDm Jun 24 ’12 at 10:49

I think so that its solution is by triggering TAB key programatically. But i dont know the code for triggering the TAB key . So can u plz tell me how to trigger TAb key presses Automatically by program code?? – user1473832 Jun 24 ’12 at 10:49

How can i send u the HTML of page ? – user1473832 Jun 24 ’12 at 10:51

Dont use the “SendKeys” , if you want that your program works call the html element. you can just sendkeys.send(“{TAB}”) but is not the solution. – RedDm Jun 24 ’12 at 10:53

vb.net

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.