I'm using Infragistics.Win. UltraWinTabControl.UltraTabControl and not able to change/add toltip on addTab/Close tab buttns in tab control.
Not able to change/add tooltip on addTab/Close tab buttons in tab control.
To understand your requirement I have create a sample of UltraTabControl and created two tabs (open /close).
And to have a tooltip to these tabs I set ‘ToolTipText’ option to each tabs like this (you can also set it through design of the control)
ultraTab1.Text = "Add";ultraTab1.ToolTipText = "This is Tab1"; ultraTab2.Text = "Close";ultraTab2.ToolTipText = "This is tab2";
Now when I run the sample I can see a tooltip to each tabs.
Please also find the attached screen short of the running sample for your reference.
If this is not what you are looking for please provide a sample application or an image of your sample to to have a clear understanding of the requirement.
Let me know if you need further assistance.
Sincerely,Divya JainAssociate Software DeveloperInfragistics, Inc.www.infragistics.com
Sorry for not being clear with my requirements. Ultra Tab control has buttons in it "NewTab" green plus sign to add new tab in control and "CloseTab" red "x" mark to close tab. I want to display tool tip on those two buttons when mouse is hovered on them.
Thank you for the update.
You mean you have a button called ‘NewTab’ in one of the tab of UltraTabControl?If I understood correct and if this is a normal button you can have a tooltip to this button by using this code:
Button btn = new Button();btn.Name = "1";btn.Text = "Add Tab";
System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();ToolTip1.SetToolTip(btn, "This is a toolTip Add tab");
You can also refer the attached screenshot of the running sample.You can see I have a tooltip for the button ‘Add Tab’.
If still this is not what you are looking for, The best way for us to assist you is if you provide a small isolated sample that we can run and use for debugging locally.