ToolTip on Button New/Close tab in TabControl Winform

Not Answered This post has 0 verified answers | 4 Replies | 2 Followers Thread's RSS feed.

BlackEyes
Points 90
Replied On: Mon, Aug 21 2017 4:16 PM Reply

Hi,

I'm using Infragistics.Win. UltraWinTabControl.UltraTabControl and not able to change/add toltip on addTab/Close tab buttns in tab control.

  • Post Points: 5

All Replies

BlackEyes
Points 90
Replied On: Mon, Aug 21 2017 4:18 PM Reply

Not able to change/add tooltip on addTab/Close tab buttons in tab control.

  • Post Points: 20
Divya Jain
Points 4,530
Infragistics Employee
Replied On: Tue, Aug 22 2017 3:28 PM Reply

Hello Swati,

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 Jain
Associate Software Developer
Infragistics, Inc.
www.infragistics.com

  • Post Points: 20
BlackEyes
Points 90
Replied On: Tue, Aug 22 2017 4:05 PM Reply

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.

  • Post Points: 20
Divya Jain
Points 4,530
Infragistics Employee
Replied On: Tue, Aug 22 2017 5:14 PM Reply

Hello,

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.

Sincerely,
Divya Jain
Associate Software Developer
Infragistics, Inc.
www.infragistics.com

  • Post Points: 5
Page 1 of 1 (5 items) | RSS