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, which sets those properties using 2 textboxes.
I have a button on that dialog box called "save" which upon pressing, updates the properties (rows, columns) in the main class to whatever values are set.
I want the main form to redraw the dynamically drawn buttons, based on the new settings applied (rows and columns). How can I do this?
edit:
Refresh is not working.
Another possibly important note: my dynamic drawing of buttons occurs in the "Form1_Load" method.