ComponentOne BinaryImage for ASP.NET Web Forms
Explore Features / Image Settings / Tooltips
In This Topic
    Tooltips
    In This Topic

    This topic demonstrates how to add tooltip text to the BinaryImage control, that appears when you hover the mouse over the binary image.

    In the Designer

    Complete the following steps to add tooltip text to the BinaryImage control.

    1. Select the BinaryImage control and click the smart tag to open the BinaryImage Tasks Menu.
    2. Set text in the ToolTip field.

    In Source View

    Set the ToolTip property in the <cc1:C1BinaryImage> tag, to add tooltip text to the BinaryImage control.

    <cc1:C1BinaryImage ID="C1BinaryImage1" runat="server" ImageUrl="~/C1.png" ToolTip="This is a BinaryImage" />

    In Code

    Add the following code to the Page_Load event, to add tooltip text to the BinaryImage control.

    To write code in C#

    C#
    Copy Code
    C1BinaryImage1.ToolTip = "This is a BinaryImage";

    To write code in Visual Basic

    Visual Basic
    Copy Code
    C1BinaryImage1.ToolTip = "This is a BinaryImage"

    What You've Accomplished

    The tooltip text appears when you hover the mouse over the image.