每次输入新地址时,都会从地址栏获取网址 [英] get url each time from address bar as new address is entered

查看:55
本文介绍了每次输入新地址时,都会从地址栏获取网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有从IE的所有当前实例获取url的代码,但是单击按钮即可完成.
我不想单击该按钮.在Internet Explorer的地址栏中输入地址并获取URL时,应该有一个事件必须触发自身.

请帮助我使用Winform从Internet Explorer地址栏中获取网址.

谢谢大家.

i have the code to get the url from all current instances of IE but it is done on clicking the button.
i don''t want to click the button. There should be an event that must triggers itself as the address is entered in the address bar of Internet Explorer and get the url.

please help me to get url from Internet Explorer address bar using winform.

thanks for all.

推荐答案

在地址输入某处后,使用它控制 OnChange 甚至OnKeyPress事件...运行代码以获取预期的URL.

输入的每个字符都会为您带来新鲜的结果.绑定并显示为建议.既然您在Winforms中需要此功能,那么您就不会遇到任何问题.
As the address is entered somewhere, use that controls OnChange or even OnKeyPress events... run the code to get the expected URL.

Every character entered will get you fresh result. Bind that and show as suggestion. Since you need this in Winforms, you shouldn''t be facing any issue.


但是如何获取Internet Explorer的onchange或keydown事件?
but how can i get onchange or keydown event of internet explorer??


这篇关于每次输入新地址时,都会从地址栏获取网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆