3个回答
展开全部
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 启动特效
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (progressBar1.Value == progressBar1.Maximum)
{
progressBar1.Value = progressBar1.Minimum;
}
else
{
progressBar1.PerformStep();
int kele8 = progressBar1.Value;
switch (kele8)
{
case (10):
label1.Text = "学生信息管理";
break;
case (20):
label1.Text = "教师信息管理";
break;
case (30):
label1.Text = "课程信息管理";
break;
case (40):
label1.Text = "教师选课";
break;
case (50):
label1.Text = "主窗体";
break;
case (60):
label1.Text = "登录窗体";
break;
}
int finishedpercent;
finishedpercent = 100 * (progressBar1.Value - progressBar1.Minimum) / (progressBar1.Maximum - progressBar1.Minimum);
label2.Text = Convert.ToInt16(finishedpercent).ToString() + "%";
}
}
}
}
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 启动特效
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
if (progressBar1.Value == progressBar1.Maximum)
{
progressBar1.Value = progressBar1.Minimum;
}
else
{
progressBar1.PerformStep();
int kele8 = progressBar1.Value;
switch (kele8)
{
case (10):
label1.Text = "学生信息管理";
break;
case (20):
label1.Text = "教师信息管理";
break;
case (30):
label1.Text = "课程信息管理";
break;
case (40):
label1.Text = "教师选课";
break;
case (50):
label1.Text = "主窗体";
break;
case (60):
label1.Text = "登录窗体";
break;
}
int finishedpercent;
finishedpercent = 100 * (progressBar1.Value - progressBar1.Minimum) / (progressBar1.Maximum - progressBar1.Minimum);
label2.Text = Convert.ToInt16(finishedpercent).ToString() + "%";
}
}
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Help.ShowHelp(this,"动画路径")
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询