问题描述
我在Windows应用程序中有一个axwebbrowser控件,我希望它从
开始,用户的IE启动页面,并在表单打开时启动,但我不能得到
它以'加载事件的形式开始。我甚至尝试用
gobutton.performclick()结束加载事件
但是它不起作用;没有输入点击事件。
我有什么想法可以做到这一点吗?
感谢您的帮助。
Bernie Yaeger
I have an axwebbrowser control in a windows app and I want it to start at
the user''s IE start page, and to start when the form opens, but I can''t get
it to start in the form''s load event. I even tried ending the load event
with
gobutton.performclick() but it doesn''t work; the click event is not entered.
Any ideas how I can do this?
Thanks for any help.
Bernie Yaeger
推荐答案
''PerformClick''仅在按钮可见并启用时才有效。将导航代码添加到单独的程序中,然后在
按钮'''点击''事件处理程序和表单''''中调用它''事件处理程序。
-
MS Herfried K. Wagner
MVP< URL:http:// dotnet .mvps.org />
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>
''PerformClick'' will only work when the button is visible and enabled. Add
you navigation code to a separate procedure and call it from within the
button''s ''Click'' event handler and the form''s ''Load'' event handler.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
这篇关于立即打开axwebbrowser控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!