当前位置: 首页 > news >正文

做慈善网站网站流量排名

做慈善网站,网站流量排名,wordpress多站点怎么修改域名,做网站java好还是phpC#桌面应用开发:番茄定时器 1、环境搭建和工程创建: 步骤一:安装visual studio2022 步骤二:新建工程 2、制作窗体部件 *踩过的坑: (1)找不到工具箱控件,现象如下:…

C#桌面应用开发:番茄定时器

1、环境搭建和工程创建:

步骤一:安装visual studio2022

步骤二:新建工程
在这里插入图片描述

2、制作窗体部件

*踩过的坑:

(1)找不到工具箱控件,现象如下:

在这里插入图片描述

解决办法:

依次点击:工具栏->获取工具和功能->单个组件:安装3.5版本开发工具
在这里插入图片描述

若上述在这里插入图片描述
办法不生效,继续检查.NET桌面开发和ASP.NET开发是否勾选

最后点击顶部栏的:视图->工具箱就能显示出工具栏

3、界面布局设计

(1)界面设计如下:

在这里插入图片描述

4、具体功能函数

using System;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;namespace MyProject01
{public partial class Form1 : Form{UInt16 Timer_Value = 0; //定时值UInt16 Timer_Count = 0; //定时器计数值byte Timer_Status = 0;  //定时器状态 0--停止  1 -- 定时状态  2 --暂停状态public Form1(){InitializeComponent();}private void textBox1_TextChanged(object sender, EventArgs e){}private void button1_Click(object sender, EventArgs e){}private void label1_Click(object sender, EventArgs e){}private void button2_Click(object sender, EventArgs e){}private void flowLayoutPanel1_Paint(object sender, PaintEventArgs e){}private void label1_Click_1(object sender, EventArgs e){}private void label2_Click(object sender, EventArgs e){}private void label4_Click(object sender, EventArgs e){}private void Form1_Load(object sender, EventArgs e){byte i;for (i = 0; i < 60; i++){//分钟和秒钟的组合框初始化comboBox1.Items.Add(i.ToString());comboBox2.Items.Add(i.ToString());comboBox1.Text = "45";  //初始化为45分钟comboBox2.Text = "0";}}private void comboBox1_SelectedIndexChanged(object sender, EventArgs e){}private void textBox1_TextChanged_1(object sender, EventArgs e){textBox1.ReadOnly = true;}private void button1_Click_1(object sender, EventArgs e){//定时器状态机函数switch (Timer_Status){case 0:{//获取定时时间,分钟*60+秒钟Timer_Value = Convert.ToUInt16(comboBox1.Text, 10);Timer_Value *= 60;Timer_Value += Convert.ToUInt16(comboBox2.Text, 10);if (Timer_Value > 0){//开始定时任务textBox1.Text = Timer_Value.ToString() + " 秒";button1.Text = "暂停计时";button2.Enabled = true;comboBox1.Enabled = false;  //关闭时间选择comboBox2 .Enabled = false;timer1.Start();Timer_Status = 1;}else{MessageBox.Show("定时时间不能为0,请重新输入", "警告");//}//进度条初始化progressBar1.Value = 0;progressBar1.Maximum = Timer_Value;break;}case 1:{timer1.Stop();Timer_Status = 2;button1.Text = "继续计时";break;}case 2:{timer1.Start();Timer_Status = 1;button1.Text = "暂停计时";break;}default:{break;}}}//定时按钮单击事件private void timer1_Tick(object sender, EventArgs e){Timer_Count++;textBox1.Text = Timer_Value-Timer_Count + " 秒";//更新进度条progressBar1.Value = Timer_Count;if (Timer_Count == Timer_Value){timer1.Stop();Timer_Count = 0;System.Media.SystemSounds.Asterisk.Play();button1.Text = "计时结束";MessageBox.Show ("定时时间到","提示");button1.Text = "开始定时";comboBox1.Enabled = true;  //关闭时间选择comboBox2.Enabled = true;comboBox1.Text = "45";  //初始化为45分钟comboBox2.Text = "0";button2.Enabled = false;Timer_Status = 0;progressBar1.Value = 0;}}private void comboBox2_SelectedIndexChanged(object sender, EventArgs e){}private void button2_Click_1(object sender, EventArgs e){if(Timer_Status > 0){Timer_Value = 0; //定时值Timer_Count = 0;Timer_Status = 0;progressBar1.Value = 0;textBox1.Text= "0";}timer1.Stop();Timer_Count = 0;button1.Text = "开始定时";comboBox1.Enabled = true;  //关闭时间选择comboBox2.Enabled = true;comboBox1.Text = "45";  //初始化为45分钟comboBox2.Text = "0";button2.Enabled = false;Timer_Status = 0;Timer_Value = 0;}}
}
http://www.hengruixuexiao.com/news/29908.html

相关文章:

  • 杭州做绒毛鉴定网站谷歌seo教程
  • 武汉免费网站制作四川网络推广seo
  • 动漫网站做毕业设计简单吗知识搜索引擎
  • 广州网站优化关键词公司steam交易链接怎么获取
  • 在什么网站能帮人做ppt活动推广宣传方案
  • 网站开发用不用写交互百度如何注册公司网站
  • 怎么做淘宝企业网站企业全网推广公司
  • 医院内网网站建设聚合搜索引擎
  • xampp怎么做网站100%上热门文案
  • 网站开发服务器资源怎么弄优化方案
  • 网站模板怎么修改成可视化网络营销的特点分别是
  • 宁晋网站开发搭建手游推广平台哪个好
  • 怀化 网站建设十大室内设计网站
  • 室内设计案例去什么网站关键词的分类和优化
  • 中文域名做的网站雅虎搜索引擎中文版
  • 做网站需要编程网站制作教程视频
  • asp网站后台无法显示该页面百度推广管理平台登录
  • 武汉建站之星信息科技有限公司网站seo规划
  • inline css wordpress引擎优化是什么工作
  • 国家网站建设营销软文推广平台
  • 企业所得税优惠政策有哪些济南seo优化外包服务公司
  • 西宁圆井模板我自己做的网站小说网站排名免费
  • 温州网站建设接单网络营销方案策划
  • 做网站维护需要学什么app运营需要做哪些
  • 建网站做哪方面上海培训机构排名
  • 网站赌博代理怎么做seo公司排名教程
  • 龙港哪里有做阿里巴巴网站深圳网络营销渠道
  • 免费的行情网站app代码百度手机seo
  • wordpress动态模板seo网站推广方法
  • 网站建设难点分析昆明seo网站建设