Reputation: 2401
I have a MDI form, and I want to be able to shift between the child forms. Is there any method to do this?
I know there I can use CTRL+F6 to achieve this, and I could simulate those keys; but I would like an easy solution.
Upvotes: 2
Views: 1627
Reputation: 2401
I completely forgot to add the answer, but here it is:
this.SelectNextControl(this.ActiveControl, true, true, true, true);
Upvotes: 2
Reputation: 549
you can use:
this.MdiChildren[i].BringToFront()
where i
is the index of the form you want to bring to front (they are sorted by first one to open is the first, second is the second etc)
btw, ctrl+tab is easier then ctrl+F6... (works in almost any windows tab based program (f.e. chrome), unlike ctrl+f6)
Upvotes: 0