I am reading up about SuspendLayout()
and ResumeLayout()
. What I can't figure out is, why should I do/use this. I know you use it when you add controls at runtime to a control-container.
It has something to do with setting properties like Dock
, Anchor
, Location
, etc.
But I don't understand what the additional value is of Suspend- and ResumeLayout(). What does these methods take care for?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…