我可以使用Exe文件访问网页。 [英] Can I Use An Exe File To Access A Webpage.

查看:79
本文介绍了我可以使用Exe文件访问网页。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以访问网页的#EXE:



我需要知道我的本地驱动器中是否有exe文件,我可以通过该文件与网页进行通信。



例如:

exe文件将有一个名为refresh的选项,当单击此按钮时,它应刷新上面的页面网页浏览器。



如果有可能,请告诉我。



谢谢。

# EXE that can access Webpage:

I need to know if i have an exe file in my local drive through which i can communicate to a webpage.

For example:
The exe file will have an option called refresh, when this button is clicked it should refresh the page that is on the web browser.

Please let me know if this is possible.

Thanks.

推荐答案

是的 - 您可以通过添加 WebBrowser控件 [ ^ ],并将其称为刷新方法 [ ^ ]当您需要时。

可以与用户的常规浏览器进行通信并强制通过向它发送F5键来刷新......但是这充满了问题,因为大多数浏览器很难(如果不是实际上不可能)确保你刷新正确的页面。
Yes - you can embed the webpage in your app by adding a WebBrowser control[^] to it, and calling it's Refresh method[^] when you need to.
You could communicate with the user's regular browser and "force" a refresh by sending it the F5 key...but that is fraught with problems since with most browsers it's difficult (if not actually impossible) to be sure you are refreshing the right page.


这篇关于我可以使用Exe文件访问网页。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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