ActiveReports.Viewer3 Request technical support
ToolTip Property
See Also  Example


Gets or sets the text that appears as a ToolTip for a tool.

Syntax

Visual Basic (Declaration) 
Public Overridable Property ToolTip As String
Visual Basic (Usage)Copy Code
Dim instance As Tool
Dim value As String
 
instance.ToolTip = value
 
value = instance.ToolTip
C# 
public virtual string ToolTip {get; set;}

Example

C#Copy Code
// Remove the default printer button
this.viewer1.Toolbar.Tools.RemoveAt(2);
// Create And add the custom button
DataDynamics.ActiveReports.Toolbar.Button btn = new DataDynamics.ActiveReports.Toolbar.Button();
btn.Caption =
"MyPrint";
btn.ToolTip =
"Custom Print Button";
btn.ImageIndex = 1;
btn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon;
btn.Id = 333;
this.viewer1.Toolbar.Tools.Insert(2,btn);
Visual BasicCopy Code
' Remove the default print button
Me.Viewer1.Toolbar.Tools.RemoveAt(2)
' Create and add the custom button
Dim btn As New DataDynamics.ActiveReports.Toolbar.Button()
btn.Caption = "MyPrint"
btn.ToolTip = "Custom Print Button"
btn.ImageIndex = 1
btn.ButtonStyle = DataDynamics.ActiveReports.Toolbar.ButtonStyle.TextAndIcon
btn.Id = 333
Me.Viewer1.Toolbar.Tools.Insert(2, btn)

Remarks

The text that is displayed when the mouse pointer moves over the tool. The default value is an empty string ("").

See Also