using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Math
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
System.Random t=new System .Random() ;//初始化随机数函数
string num;//定义一个字符串变量,用于显示
private void button1_Click(object sender, EventArgs e)
{
timer1.Start();
}
private void button2_Click(object sender, EventArgs e)
{
timer1.Stop();
}
private void timer1_Tick(object sender, EventArgs e)
{
this.num = Convert.ToString(t.Next(1,1000));//产生1到1000之间的一个随机数
textBox1.Text = num;
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();//关闭程序
}
}
}
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有