In the main form, when the form load I created a new form and added it to WinTabbedMdi tab.
How to set this form as deafult home page tab (locked tab) without close, drag drop...?
I'm not sure that I understand what you want to do. You can set a tab to be the Active tab by calling the Activate method on it. So, you could do something like this:
ultraTabbedMdiManager1.MdiParent.MdiChildren[0].Activate();
Does that give you what you want?
Thank you for your response.
Whats I want is how to make the (first) tab persistent,means that it can not close, while others tab can close.
You can see an example here: https://www.devexpress.com/Support/Center/Example/Details/E2331
It works perfect! Thank you so much.
There is also an "AllowDrag" property that is also in the Settings. You could just as well use that property.
There is a property for preventing the closing of a tab.
Try something like this:
ultraTabbedMdiManager1.TabGroups[0].Tabs[0].Settings.AllowClose = DefaultableBoolean.False;
As for preventing the dragging of a tab, you can handle the TabDragging event of the UltraTabbedMdiManager and cancel the event after testing for the tab that you want to be stationary.
Something like this:
private void ultraTabbedMdiManager1_TabDragging(object sender, Infragistics.Win.UltraWinTabbedMdi.CancelableMdiTabEventArgs e)
{
if (e.Tab.Index == 0)
e.Cancel = true;
}
Let me know if that works for you.