RichtTextBox を持つ新しい MDIChild を作成します。
Form myForm = new Form();
myForm.MdiParent = this;
RichTextBox rtb = new RichTextBox();
myForm.Controls.Add(rtb);
myForm.Show();
RTB を持たない他の MDIChild が開かれている可能性があるため、ActiveChild に RichtTextBox が含まれているかどうかを確認します。これを行う方法がわかりません... try-catch で次のようなもの (?):
foreach (Control control in this.ActiveMdiChild.Controls)
{
// check if the control is a checkbox
// make the richttextbox as an object so I can do strange things with it ^^
}
助けていただけませんか?
Thx & Cheers アレックス