Tenza
Tenza

Reputation: 2401

Shift between MDI child forms

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

Answers (2)

Tenza
Tenza

Reputation: 2401

I completely forgot to add the answer, but here it is:

this.SelectNextControl(this.ActiveControl, true, true, true, true);

Upvotes: 2

Nadav Ben-Gal
Nadav Ben-Gal

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

Related Questions