摘要: lock实现代码块只允许被一个线程访问 例如多个窗口售票,余票数的计算 using System; using System.Threading; namespace ConsoleApplication3 { class Program { int num = 10; void SellTicke 阅读全文
posted @ 2019-05-08 21:03 夕西行 阅读(232) 评论(0) 推荐(0)
摘要: progressBar的Step属性设置为1 using System; using System.Windows.Forms; using System.Threading; namespace Demo1 { public partial class Form1 : Form { public 阅读全文
posted @ 2019-05-08 20:42 夕西行 阅读(212) 评论(0) 推荐(0)
摘要: 1、移动pictureBox控件即可 素材: using System; using System.Drawing; using System.Windows.Forms; using System.Threading;//引入线程 namespace Demo { public partial c 阅读全文
posted @ 2019-05-08 19:19 夕西行 阅读(285) 评论(0) 推荐(0)