博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C#微型网页查看工具
阅读量:4329 次
发布时间:2019-06-06

本文共 1564 字,大约阅读时间需要 5 分钟。

 

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace web_borwer{    public partial class Form1 : Form    {        int i=0;        public Form1()        {            InitializeComponent();            textBox1.Text = "http://192.168.126.131:5000/";            timer1.Enabled = true;            timer1.Interval = 4000;            label1.Text = i.ToString();            timer1.Start();            button1.Text = "start";            button2.Text = "stop";            textBox2.Text = "2000";                            }        private void button1_Click(object sender, EventArgs e)        {                    }        private void timer1_Tick(object sender, EventArgs e)        {            webBrowser1.Navigate(textBox1.Text.ToString ());            i = i + 1;            label1.Text = i.ToString();            //i = i + 1;            //textBox1.Text = i.ToString();        }        private void label1_Click(object sender, EventArgs e)        {        }        private void Form1_Load(object sender, EventArgs e)        {        }        private void button1_Click_1(object sender, EventArgs e)        {            timer1.Interval = Convert.ToInt32(textBox2.Text);            timer1.Start();        }        private void button2_Click(object sender, EventArgs e)        {                       timer1.Stop();        }           }}

 

URL 刷新次数

刷新频率  开始 停止

 

 

转载于:https://www.cnblogs.com/yunpiao111/p/5447673.html

你可能感兴趣的文章
C语言编程-9_4 字符统计
查看>>
在webconfig中写好连接后,在程序中如何调用?
查看>>
限制用户不能删除SharePoint列表中的条目(项目)
查看>>
【Linux网络编程】使用GDB调试程序
查看>>
feign调用spring clound eureka 注册中心服务
查看>>
ZT:Linux上安装JDK,最准确
查看>>
LimeJS指南3
查看>>
关于C++ const成员的一些细节
查看>>
《代码大全》学习摘要(五)软件构建中的设计(下)
查看>>
C#检测驱动是否安装的问题
查看>>
web-4. 装饰页面的图像
查看>>
微信测试账户
查看>>
Android ListView上拉获取下一页
查看>>
算法练习题
查看>>
学习使用Django一 安装虚拟环境
查看>>
Hibernate视频学习笔记(8)Lazy策略
查看>>
CSS3 结构性伪类选择器(1)
查看>>
IOS 杂笔-14(被人遗忘的owner)
查看>>
自动测试用工具
查看>>
前端基础之BOM和DOM
查看>>