b******y 发帖数: 139 | 1 When I run the following C# program and pull other windows at the same time,
painting will be messed up. But if the program is writeen in Java, such a
problem doesn't occur, so the reason is the C# thread. Anyone can help me to
fix it? Thanks.
// Calc.cs ----------------------------------------------------------------- | k*k 发帖数: 508 | 2 不知道你到底想干吗,那个 Thread.Sleep 干吗用的?让程序 freeze 一段时间么?
time,
to
【在 b******y 的大作中提到】 : When I run the following C# program and pull other windows at the same time, : painting will be messed up. But if the program is writeen in Java, such a : problem doesn't occur, so the reason is the C# thread. Anyone can help me to : fix it? Thanks. : // Calc.cs -----------------------------------------------------------------
| m*****r 发帖数: 130 | 3 你这个messup是完全正常的行为。那个Thread.sleep就是把当前thread,也就是GUI的
thread给停住,没办法画GUI了。你要想干别的,得弄个新的Thread。
time,
to
【在 b******y 的大作中提到】 : When I run the following C# program and pull other windows at the same time, : painting will be messed up. But if the program is writeen in Java, such a : problem doesn't occur, so the reason is the C# thread. Anyone can help me to : fix it? Thanks. : // Calc.cs -----------------------------------------------------------------
| A**********e 发帖数: 3102 | 4 你得把 thread 定义好,从主程序启动,单独跑,给个名字, MSDN 上面有例子。你这
么干,不是把主程序给挂了么?
time,
to
【在 b******y 的大作中提到】 : When I run the following C# program and pull other windows at the same time, : painting will be messed up. But if the program is writeen in Java, such a : problem doesn't occur, so the reason is the C# thread. Anyone can help me to : fix it? Thanks. : // Calc.cs -----------------------------------------------------------------
|
|