This question is locked. New answers and comments are not allowed.
I have a form with a few ComboBox inside.
Program.cs look like this:
while (true) {
MainForm main = new MainForm();
Application.Run(main);
if (!main.RunAgain) // a boolean property in MainForm
return;
}
Basically for the first time, it run properly. However if I run the form the second time (by setting RunAgain to true), then the ComboBox will appear empty (empty as if nothing inside). If you click on the box 1 or 2 more times, then the content will reappear.
Program.cs look like this:
while (true) {
MainForm main = new MainForm();
Application.Run(main);
if (!main.RunAgain) // a boolean property in MainForm
return;
}
Basically for the first time, it run properly. However if I run the form the second time (by setting RunAgain to true), then the ComboBox will appear empty (empty as if nothing inside). If you click on the box 1 or 2 more times, then the content will reappear.