Children controls and form flicker

  • Thread starter Thread starter Jon Pope
  • Start date Start date
J

Jon Pope

I'm programmatically adding controls to a form. The issue I'm seeing is
that I can see the controls lay themselves out on the form during runtime.
I'd rather not see this. I've used the form.SuspendLayout()/ResumeLayout()
in hopes that this would hide the child controls' initialization, but that
doesn't seem to help.

Any help would be greatly appreciated.

Cheers, Jon
 
Jon Pope said:
I'm programmatically adding controls to a form. The issue I'm seeing is
that I can see the controls lay themselves out on the form during runtime.
I'd rather not see this. I've used the form.SuspendLayout()/ResumeLayout()
in hopes that this would hide the child controls' initialization, but that
doesn't seem to help.

BTW, I wouldn't expect SuspendLayout to do this, AFAIK all it does it stop
the controls being moved around on the form. Maybe the order in which you
execute your statements would fix the problem, add them to the controls
collection last.
 
Back
Top