Need to reload main form
Posted on 2004-08-31
I currently have a control array of buttons that are dynamically created in the form_load event based on input from a .ini file. I am providing the user a way to modify this .ini file within my application. however, if they add or delete an entry from the file, i have no way to be able to update the buttons on the main form to reflect this.
I thought about moving the button creation code into the Paint event, but it won't let me remove controls from there.
Only solution I could come up with is to launch another instance of my application and close the existing one. It seems kinda crude though, and I'd like to find a better way. Any suggestions?