Profile Picture

How close NUIDocument

Posted By Pavel Kozak 14 Years Ago
Author
Message
Pavel Kozak
questionmark Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)Junior Member (10 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 10, Visits: 1

I use the tabs on NUIDocument to display various elements on the meringue and WinForm UserControl as follows:

private static NUIDocument ShowDoc(Form DocForm, string Title, string Key, int Index)
{
DocForm.TopLevel = false;
DocForm.FormBorderStyle = FormBorderStyle.None;
DocForm.ShowIcon = false;
DocForm.ShowInTaskbar = false;
DocForm.Dock = DockStyle.Fill;
DocForm.Show();

NUIDocument doc = new Nevron.UI.WinForm.Controls.NUIDocument();
doc.Client = DocForm;
doc.Text = title;
doc.Key = Key;
doc.ImageIndex = Index;

DockMng.DocumentManager.AddDocument(doc);
return doc;
}

This works fine, help with:

1. Is this correct?
2. As with inside DocForm (Form) with reference to the parent NUIDocument properly close a tab that we have created.




Similar Topics


Reading This Topic