I am using the ultraTabbedMdiManager on an MDI form, checking to see if the form is already open and if open, attempting to select that tab programatically. The problem is, it doesn't select the already existing tab/form, it creates another instance of that tab/form. I've tried tab.Active(), tab.Show(), tab.Form.BringToFront and tab.Form.Select and all of these actually create another instance of the already existing tab. Please see code snippet below. Any assistance in solving this would be very much appreciated.
Thanks, Michelle
foreach
.ultraTabbedMdiManager1.ActiveTab.TabGroup.Tabs)
{
//Select tab
//tab.Activate();
tab.Form.Show();
//tab.Form.BringToFront();
//tab.Form.Select();
}
(MdiTab tab in this.ultraTabbedMdiManager1.ActiveTab.TabGroup.Tabs)
if (tab.Form.Name == "RequestForm"
)
if (((RequestForm)tab.Form).TransferRequest.ID == (int)this.QueueDataGridView.Rows[this.QueueDataGridView.SelectedRows[0].Index].Cells["RequestIDTextBoxColumn"
].Value)
//tab.Form.Show();
Hi, it's a few months later and I'm still unable to prevent tabs from duplicating if I try and prevent a second instance of the mdi child from opening. If anyone has any ideas as to how we can prevent tab replication, I would very much appreciate your assistance.
Thanks!