There can be a differences to designer and runtime setting of
properties.
If you look at the designer generated code it sometimes wraps
BeginInit() and EndInit() around the setting of a controls properties.
This is so the control can optimise the initialising of properties,
generally by delaying any actions on the property until the EndInit.
Also, setting at run time could be done too late thus causing something
like the title to be drawn twice.
I would recommend using the design time setting if possible.
Tigger
Hi Op.
If you click on the designer generated code on the + in version 1.x or
look
in the designer class if you put in top of the Solution Explorer "Show
all
files" in the class with the name xx.designer.cs than you see the
generated
code. That is mostly better than that you or I would do it by hand.
I thought Tom was pretty clear, but before somebode doubt in that.

)))))
Cor
"Tom Shelton" <
[email protected]> schreef in bericht
Robbe Morris [C# MVP] wrote:
The designer simply writes the code for you. There
is no real difference.
That is what I was trying to say... Perhaps I was unclear.