zoukankan      html  css  js  c++  java
  • C#微型网页查看工具

    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 刷新次数

    刷新频率  开始 停止

    image
  • 相关阅读:
    Thinkphp学习笔记2-
    Thinkphp学习笔记1-URL模式
    WebApi-如何实现接口加密
    微信-.NET调用JS-SDK
    微信-JSSDK .NET版
    HTML-获取/修改html页面标题
    JS-获取图片地址
    微信-js sdk invalid signature签名错误 问题解决
    C++笔试题
    单链表反转的分析及实现
  • 原文地址:https://www.cnblogs.com/yunpiao111/p/5447673.html
Copyright © 2011-2022 走看看