.NET winforms重绘问题 [英] .NET winforms redraw problem
问题描述
我正在使用.net 2.0并在VS2005中工作。
我注意到标准Form类中的令人不快的效果
行为:当Form被其他窗口悬停时,它被重绘非常慢。
这是一个例子。我采取空的形式,放一些标准控件:
http://www.ljplus.ru/img4/b/o/boshetunmaj/Redraw2.jpg
我的硬件配置是:p4 3200,2 Gb ram,GeForce 5200.
I am using .net 2.0 and working in VS2005.
I''ve noticed following unpleasant effect in the standard Form class
behaviour: when the Form is hovered by some other window, it is being redrawn very slowly.
Here is the example. I have taken empty form, put there some standard controls:
http://www.ljplus.ru/img4/b/o/boshetunmaj/Redraw2.jpg
My hardware conf is: p4 3200, 2 Gb ram, GeForce 5200.
推荐答案
我发现此刻重绘的控制占用了80% CPU时间......
I have found that controls redraw at this moment takes up to 80% of CPU time...
除非我的计算机被大量的应用程序困扰,否则我从未有过这种情况。
我可能建议检查你的windows主题/风格设置?如果你的窗户上有很多控件,P4可能无法提供它。
I have never had that occurance unless my computer is super bogged down with a lot of applications.
Might I suggest checking your windows theme/style settings? The P4 might not be able to hand it if you have a LOT of controls on your windows.
我从未有过这种情况,除非我的电脑充满了大量的应用程序。
我可以建议检查你的windows主题/风格设置吗?如果您的窗户上有很多控件,P4可能无法提供。
I have never had that occurance unless my computer is super bogged down with a lot of applications.
Might I suggest checking your windows theme/style settings? The P4 might not be able to hand it if you have a LOT of controls on your windows.
这很奇怪,但只有很少的控件。最显着的效果是TextBoxes,ComboBoxes和GroupBoxes。
你的意思是哪一个?
It''s strange, but there are only few controls. The most noticable effect is for TextBoxes, ComboBoxes and GroupBoxes.
Which one setting do you mean?
这篇关于.NET winforms重绘问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!