0

How can I set the stack order for controls of an mdi form and new child forms that appear within my mdi form. The mdi controls appear on top of the child forms after they are opened. I googled this but couldn't find anything relevant to controls and mdi forms.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by MagnetoM
0

I can't seem to get it to work as I would like.

public MainForm()
        {
             InitializeComponent();
        }
     
        private void button1_Click(object sender, EventArgs e)
        {
            Subform1 apple = new Subform1(this);
            apple.BringToFront();
            apple.Show();
        }

When I move the child form the controls on the main form appear on top of the child.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.