怎样改变打开窗体的方式 我看别人的窗体是一点一点展开的而不是一下子出来我想知道是如何实现的的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //在窗体上放个Timer控件private void Form1_Load(object sender, EventArgs e){ this.StartPosition = FormStartPosition.CenterParent; this.Size = new Size(130, 40); this.timer1.Interval = 5; this.timer1.Start();}private void timer1_Tick(object sender, EventArgs e){ if (this.Width < 600) { this.Size = new Size(this.Size.Width + 10, this.Height + 10); this.Location = new Point((Screen.PrimaryScreen.Bounds.Width - this.Size.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - this.Size.Height) / 2); return; } this.timer1.Stop();} WPF支持这种动画,不需要timer之类的。 字符串转16进制问题 有没有软件能够取得一副图片的颜色范围?? 小弟要学习RGB与CMYK转化方面的知识,求各位给点好资料!比如说我的一副照片由RGB转换为CMYK,对图片有什么影响呢?哪个转换算法比较好?如果您知道或您知道这方面的资料,请告诉小弟!谢谢! 小问MVC模式 人才招聘网/商务网的数据列表是怎么做的? 请问一个windows服务的问题,高手请进 怎样将Excel导入Sql中 如何在一个线程中把自己结束掉? 问一个sql问题 请教怎么用Advanced Installer 11.0打包SQL Server 2008 Express 正则提取问题 求助求助求助求助......
//在窗体上放个Timer控件
private void Form1_Load(object sender, EventArgs e)
{
this.StartPosition = FormStartPosition.CenterParent;
this.Size = new Size(130, 40);
this.timer1.Interval = 5;
this.timer1.Start();
}private void timer1_Tick(object sender, EventArgs e)
{
if (this.Width < 600)
{
this.Size = new Size(this.Size.Width + 10, this.Height + 10);
this.Location = new Point((Screen.PrimaryScreen.Bounds.Width - this.Size.Width) / 2, (Screen.PrimaryScreen.Bounds.Height - this.Size.Height) / 2);
return;
}
this.timer1.Stop();
}