Infragistics(R) NetAdvantage(R) Windows Forms
PinButtonVisible Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.Misc Namespace > UltraDesktopAlertShowWindowInfo Class : PinButtonVisible Property

Specifies whether the desktop alert window displays a pin button, which, when clicked by the end user, toggles the value of the Infragistics.Win.Misc.UltraDesktopAlertShowWindowInfo.Pinned property.

Syntax

Visual Basic (Declaration) 
Public Property PinButtonVisible As Boolean
C# 
public bool PinButtonVisible {get; set;}

Example

The following code sample demonstrates how the use the PinButtonVisible property of the UltraDesktopAlertShowWindowInfo class to enable the end user to prevent a desktop alert window from automatically closing.

Visual BasicCopy Code
Imports Infragistics.Win
Imports Infragistics.Win.Misc

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        '  Create a new instance of the UltraDesktopAlertShowWindowInfo class.
        Dim showInfo As UltraDesktopAlertShowWindowInfo = New UltraDesktopAlertShowWindowInfo()

        '  Set the Caption and Text
        showInfo.Caption = String.Format("<a>{0}</a>", "Caption")
        showInfo.Text = String.Format("<a>{0}</a>", "Text")

        '   Set the PinButtonVisible to true so the end user can prevent
        '    the desktop alert window from automatically closing.
        showInfo.PinButtonVisible = True

        '  Call the Show method to display the desktop alert
        Me.desktopAlert.Show(showInfo)
    End Sub
C#Copy Code
using Infragistics.Win;
using Infragistics.Win.Misc;
using System.Diagnostics;

    private void Button1_Click(object sender, EventArgs e)
    {
        //  Create a new instance of the UltraDesktopAlertShowWindowInfo class.
        UltraDesktopAlertShowWindowInfo showInfo = new UltraDesktopAlertShowWindowInfo();

        //  Set the Caption and Text
        showInfo.Caption = string.Format("<a>{0}</a>", "Caption");
        showInfo.Text = string.Format("<a>{0}</a>", "Text");

        //   Set the PinButtonVisible to true so the end user can prevent
        //    the desktop alert window from automatically closing.
        showInfo.PinButtonVisible = true;

        //  Call the Show method to display the desktop alert
        this.desktopAlert.Show(showInfo);
    }

Remarks

When this property is set to true, the associated desktop alert window displays a button with a pushpin (a.k.a., thumbtack) graphic to the immediate left of the close button to provide a way for the end user to change the value of the Pinned property.

See Also