Category / Section
How to set the Border color for the SuperToolTip?
In the SuperToolTip, BorderColor can be applied by using the BorderColor property of the ToolTipInfo.
The following code example demonstrates the same.
C#
//Initializes the ToolTipInfo. Syncfusion.Windows.Forms.Tools.ToolTipInfo toolTipInfo1 = new Syncfusion.Windows.Forms.Tools.ToolTipInfo(); //Specifies the ToolTip text. toolTipInfo1.Body.Text = "SuperToolTip for ButtonAdv"; // Specifies the border color. toolTipInfo1.BorderColor = Color.Red; //Assigns the SuperToolTip to ButtonAdv. this.superToolTip1.SetToolTip(this.buttonAdv1, toolTipInfo1);
VB
'Initializes the ToolTipInfo. Dim toolTipInfo1 As New Syncfusion.Windows.Forms.Tools.ToolTipInfo() 'Specifies the ToolTip text. toolTipInfo1.Body.Text = "SuperToolTip for ButtonAdv" 'Specifies the border color. toolTipInfo1.BorderColor = Color.Red 'Assigns the SuperToolTip to ButtonAdv. Me.superToolTip1.SetToolTip(Me.buttonAdv1, toolTipInfo1)
The BorderColor can also be applied by specifying the RGB values as follows.
C#
//Initializes the ToolTipInfo Syncfusion.Windows.Forms.Tools.ToolTipInfo toolTipInfo2 = new Syncfusion.Windows.Forms.Tools.ToolTipInfo(); // Specifies the ToolTip text. toolTipInfo2.Body.Text = "SuperToolTip for Gradient Panel"; // Specifies the border color. toolTipInfo2.BorderColor = Color.FromArgb(200, 212, 53); //Assigns the SuperToolTip to Gradient label. this.superToolTip1.SetToolTip(this.gradientLabel1, toolTipInfo2);
VB
'Initializes the ToolTipInfo. Dim toolTipInfo2 As New Syncfusion.Windows.Forms.Tools.ToolTipInfo() 'Specifies the ToolTip text. toolTipInfo2.Body.Text = "SuperToolTip for Gradient Panel" 'Specifies the border color. toolTipInfo2.BorderColor = Color.FromArgb(200, 212, 53) 'Assigns the SuperToolTip to Gradient label. Me.superToolTip1.SetToolTip(Me.gradientLabel1, toolTipInfo2)

Figure 1: SuperToolTip with Border color as Red

Figure 2: SuperToolTip with border color of RGB values

Figure 3: SuperToolTip without specifying the border color
Sample Links: