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

屏显的企业网站应该怎么做手机百度助手

屏显的企业网站应该怎么做,手机百度助手,淘宝实时优惠券网站怎么做的,怎么弄自己的网站C#桌面应用开发:番茄定时器 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.rdtb.cn/news/20883.html

相关文章:

  • 网站备案到公司网站流量查询平台
  • 贵州中小型营销型网站建设公司seo排名工具外包
  • 衡水网站建设哪家好营销网站建设创意
  • 天津网站建设排名建站系统推荐
  • 天猫网站做链接怎么做googleplay
  • 广州做网站的公免费注册推广网站
  • 浙江省建设网站徐叨法广州seo服务外包
  • 做网站编辑要会什么软文范例800字
  • 福建网站备案百度下载正版
  • 南宁保洁网站建设网络广告投放
  • 网站设计建设服务电商大数据查询平台
  • 销售网站模板免费下载奶茶网络营销策划方案
  • 黄色网站模板网络优化工程师有前途吗
  • 网站后续建设个人开发app去哪里接广告
  • 建网站英语站内搜索引擎
  • 武汉手机网站建设品牌互联网推广平台有哪些
  • 镇江门户网站微信搜一搜seo优化
  • 网络游戏网站网址大全广州短视频代运营
  • 自己的电脑做服务区 网站企业seo排名外包
  • 2021年给我一个网站百度搜索引擎营销案例
  • 河北省 政府网站 建设意见网站流量统计分析的维度包括
  • 前端做网站需要学什么软件磁力狗在线引擎
  • 做网站前台模型要做什么呢seo是什么平台
  • 上海电子通科技网站建设怎么建企业网站
  • 小说网站建设采集网站搭建需要什么技术
  • 电影网站如何做不侵权最近发生的新闻事件
  • 去哪找网站建设公司免费域名申请网站
  • 领手工在家做的网站2019免费域名申请网站大全
  • 网站的搜索框如何做运营推广渠道有哪些
  • win7如何做网站镇江交叉口优化