xiecsuk
Member
What exactly does SuspendLayout / ResumeLayout do?
I have an MDI form that has a toolbar with buttons to open up to 3 child forms, which are derived from a BaseChild class. Each child form has a DataGridView to display a table via a TableAdapter. As each child form is opened I set MdiLayout.TileHorizontal to allow the user to view/edit all 3 sets of data if necessary. As the child form opens it displays on the .Show() a small blank form and is then tiled to display the data. I wish to wait until all the work has been done before I repaint the screen.
Should SuspendLayout / ResumeLayout around the code that creates the child form, fills the DGV and tiles it achieve this, or have I misunderstood their function? If I have, what commands should I be looking at?
I have an MDI form that has a toolbar with buttons to open up to 3 child forms, which are derived from a BaseChild class. Each child form has a DataGridView to display a table via a TableAdapter. As each child form is opened I set MdiLayout.TileHorizontal to allow the user to view/edit all 3 sets of data if necessary. As the child form opens it displays on the .Show() a small blank form and is then tiled to display the data. I wish to wait until all the work has been done before I repaint the screen.
Should SuspendLayout / ResumeLayout around the code that creates the child form, fills the DGV and tiles it achieve this, or have I misunderstood their function? If I have, what commands should I be looking at?