I work a lot with Visual Studio 2008, .NET C # 2.0-3.5 and Windows Forms, and I, like many others, noticed that GDI + draws controls very slowly. Note that I do not deal with images (JPG, GIF, etc.). Images are only icons in certain places. These are actually Controls / Forms / etc, which are slowly drawn.
The problem is that you can see the controls looming, and it may take a few seconds for the seemingly easy set of controls. Those. his lag and horror.
I did tests where I just put a few shortcuts (40-50) on the form, pressing F5 to run, and wait for them to be drawn. Again, lagging and not a very pleasant experience.
So then there is WPF that can solve this problem, but we / we are not ready to switch to WPF. So I look at workarounds or fixes, and I came across Direct2D, and while reading these other libraries,
Put me a little puzzled, and so these questions:
1)
First, I want a pretty simple and easy way to just replace GDI + with something with a faster and hardware accelerated approach. Can this be done without switching to WPF and without rewriting all my Windows Forms code?
Whenever I read something in Direct2D, I see long blocks of usually awful C ++ code, telling me how to manually write code for drawing. I do not want it.
2)
While reading online, I came across SlimDX, but I can’t figure out how to use it (and I admit that I wasn’t very good at writing). Suppose I already have a GUI application (Windows Forms, standard C # code). Can I somehow use SlimDX (or something like that) to just “replace” GDI + with too much rewriting?
My problem is that I cannot find any examples or tell me if SlimDX, Direct2D or other similar things can be used in my already created Windows Forms software, and if possible, how to do it.
Hope Im not too fuzzy =)
== EDIT == 2010-09-22
:
UserControl, . , GroupControl , .Text- .
10 Label. , , , , , 500 . , , , 0 .
== EDIT 2 == 2010-09-22
. String Text- , , .
Im, DevExpress, LabelControls AutoSizeMode. "", , . , Label, AutoSize = true/false.
" ", - , .