I have a button on a form which opens a new form as an owned form. (It's very simple, no other logic than below)
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
Form form = new Form();
form.Show(this);
}
}
My problem is as follows:
- If I click the button to get an instance of an owned form and drag it to it's own monitor.
- Maximize the owned form
- Minimize the original main form (Form1)
- Restore the original main form (Form1)
Then on restore the maximized owned form is no longer maximized but has a state of Normal.
Edit: The Owned form is styled as a tool window so I cannot break the Owner/Owned relationship. It appears to be a thing with winforms but I know it should be possible to correct since VS behaviors correctly and restores the window to Maximized rather than to Normal.