ActiveReports 6 Online Help
Tag Property (ARControl)
Example 

Gets or sets user-defined information to be persisted with the control.
Syntax
'Declaration
 
Public Property Tag As Object
public object Tag {get; set;}
Example
Private void designer1_StatusChanged(object sender, System.EventArgs e)
{
    For(int i=0;i<this.tlbReport.Buttons.Count;i++)
    {
        System.Windows.Forms.ToolBarButton tb = this.tlbReport.Buttons[i];
        If(tb.Tag != null)
        {
            setStatus(tb.Tag.ToString(),tb);    
        }
    }
}
Private Sub Designer1_StatusChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Designer1.StatusChanged
    For i = 0 To Me.tlbReport.Buttons.Count - 1
        Dim tb As New System.Windows.Forms.ToolBarButton()
        tb = Me.tlbReport.Buttons(i)
        If tb.Tag Is Nothing = False Then
            setStatus(tb.Tag, tb)
        End If
    Next
End Sub
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ARControl Class
ARControl Members

Send Feedback