I have a C# Win Forms application where I dynamically draw buttons in a panel based on 2 properties in the class. Rows and Columns.
I also have a dialog box that opens,
Panel.Refresh()
Will force redrawing of all child controls.