D
David D Webb
I'm converting a CF1 project to a CF2 project.
I call the code:
(new LoginForm()).Show();
from the Load method of another form (the main form in the app). I read in
another post that this no longer worked in CF2.0, but it didn't mention how
to get around this. When the app starts, it loads the main form, but
immediately throws up a login form. For various reasons, I didn't make the
login form the main form.
Also I have another instance where the form is no longer showing. I call
this from a menu click event and it never shows the form:
PlannerDownloadForm plannerDownloadForm = new PlannerDownloadForm();
plannerDownloadForm.ShowDialog();
The Load method of PlannerDownloadForm begins a download process, then
closes itself as the last line.
Any suggestions, or suggested further reading would be appreciated.
Should I move the code to a Paint or Activated event and keep track of a
bool so it only does it once?
Thanks,
Dave
I call the code:
(new LoginForm()).Show();
from the Load method of another form (the main form in the app). I read in
another post that this no longer worked in CF2.0, but it didn't mention how
to get around this. When the app starts, it loads the main form, but
immediately throws up a login form. For various reasons, I didn't make the
login form the main form.
Also I have another instance where the form is no longer showing. I call
this from a menu click event and it never shows the form:
PlannerDownloadForm plannerDownloadForm = new PlannerDownloadForm();
plannerDownloadForm.ShowDialog();
The Load method of PlannerDownloadForm begins a download process, then
closes itself as the last line.
Any suggestions, or suggested further reading would be appreciated.
Should I move the code to a Paint or Activated event and keep track of a
bool so it only does it once?
Thanks,
Dave