从浏览器获取当前 URL [英] Get current URL from Browser

查看:47
本文介绍了从浏览器获取当前 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 VB.Net 中开发新的咖啡厅软件,我需要从网络浏览器获取 url.如何仅使用 VB.Net 从任何 Web 浏览器获取当前 url?(不是 ASP.NET)

I'm developing new cafe software in VB.Net and I need to get the url from the web browser. How can I get the current url from any web browser using VB.Net only? (Not ASP.NET)

推荐答案

也许您应该考虑编写 Windows 窗体程序并托管 WebBrowser Control 形式.这样,您将拥有所需的所有控制权.事实上,您可以自己添加前进和后退按钮以及所有UI"内容,并使用它们来控制 WebBrowser Control.

Maybe you should consider writing a Windows Forms program and hosting the WebBrowser Control in the form. That way, you'll have all the control you want. In fact, you get to add the forward and back buttons and all the "UI" stuff on your own, and use them to control the WebBrowser Control.

上次尝试用了大约 15 分钟.

It took me about 15 minutes last time I tried.

这篇关于从浏览器获取当前 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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