Jerry,
In my app the Main() method is in a class, not the main form. The main form has a field (called 'selForm' in the code below) that holds a reference to a special mdi child form which I use as a "function selector" form for the user.
In the main form's constructor, after the InitializeComponent() call, I create the selector form:
private void ShowViewSelector()
{
if (this.selForm == null || this.selForm.IsDisposed)
{
selForm = new SelectorForm();
}
selForm.MdiParent = this;
selForm.Show();
selForm.BringToFront();
}
(The checks for null and IsDisposed is because the user can re-open the selector form from the menu if they closed it.)
So when the main form first displays, it also contains this child form. Is this what you're trying to do?
Roger
>I have a C# project that uses a MdiContainer WinForm as the project's main shell form.
>
>When the project to run, the main form starts up as expected. But how do I make another form (child form) also display at startup?
>
>In my main form Main() method I do this to display the main form:
> Application.Run(new MainForm());
>
>This is fine, but I can't seem to issue that command again to start another form.