void StartScroll()//调用此方法会循环滚动richtextbox
{
DispatcherTimer timer = new DispatcherTimer();
timer.Interval = new TimeSpan(0, 0, 0, 0, 50);
timer.Tick += new EventHandler(timer_Tick);
timer.Start();
}
double tmp = 0;
void timer_Tick(object sender, EventArgs e)
{
this.TB_Rich.ScrollToVerticalOffset(tmp++);
}
c#定时器
最新推荐文章于 2024-03-08 09:22:18 发布