c# winform 文字滚动问题 panel中放label,用timer控件定时改变label的位置就可以了,这个最简单了,也好做。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 实现lable1中文字在Panel1里从上往下滚动:Load里写this.timer1.Start();private void timer1_Tick(object sender, EventArgs e){ int FWidth = this.panel1.Width; int FHeight = this.panel1.Height; Point LPos = new Point(this.label1.Location.X, this.label1.Location.Y); if (LPos.Y < FHeight) { this.label1.Location = new Point(LPos.X, LPos.Y+2); return; } else { this.label1.Location = new Point(0, 0); }} 类与类之间的变量如何相互访问 WPF TreeView节点如何实现拖拽并更新数据 为什么ConfigurationManager.AppSettings.Count总是0? 用WebBrowser时出现的问题! messagebox如何让它不显示在状态栏 紧急,请下忙! 名称“Split2Info”在类或命名空间“localhost.Global”中不存在 引用那个啊? 如何在c#中建立一个象vc 中的全局钩子? WinForm把title字段的数据绑定到listBox1中 十万火急、在线求助: 曲线的连续、不分页打印问题 关于数据库更新的问题!!! 定义一个可为空类型
this.timer1.Start();private void timer1_Tick(object sender, EventArgs e)
{
int FWidth = this.panel1.Width;
int FHeight = this.panel1.Height; Point LPos = new Point(this.label1.Location.X, this.label1.Location.Y);
if (LPos.Y < FHeight)
{
this.label1.Location = new Point(LPos.X, LPos.Y+2);
return;
}
else
{
this.label1.Location = new Point(0, 0);
}
}