防止Web浏览器刷新 [英] Prevent Web Browser from Refreshing

查看:207
本文介绍了防止Web浏览器刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个气象程序,该程序使用通过保管箱txt文件发出的命令来告诉程序执行特定操作.读取命令时会弹出一个网络浏览器.代码如下所示:

Hello, I have a weather program that uses commands via dropbox txt files that tell the program to do specific things. There is a web browser that pops up when a command is read. The code goes somewhat like this:

If Label1.Text = "Show" Then
WebBrowser1.Visible = True
Else
WebBrowser1.Visible = False

由于某种原因,程序刷新时,它将再次读取命令并刷新Web浏览器.如果该命令存在,我该如何定位该程序,它将阻止Web浏览器刷新.

For some reason, when the program refreshes, it reads the command again and refreshes the web browser. How can I make it to where if that command is there, the program will prevent the web browser from refreshing.

推荐答案

WebBrowser.Enabled = False吗?
WebBrowser.Enabled = False ?


这篇关于防止Web浏览器刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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