我在 vb.net 2008 webbrowser 控件中打开一个网站。我想当我打开网站的第三页时,然后在页面加载后,通过我的代码自动触发 TAB 按键以编程方式控制焦点。请告诉我转移焦点控制的解决方案?
问问题
489 次
1 回答
0
I don't know if I have understood your question right, but you could try the following,
Keep track of whether you are on the third page in your web-browser control. If you are, you can execute a JavaScript function, which changes the focus of the text-fields.
Page.ClientScript.RegisteredStartUpScript(GetTypeOf(), "function_change_tabs", script, True)
于 2012-06-23T08:40:27.847 回答