See Also

ARControl Class  | ARControl Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

Tag Property

Gets or sets user-defined information to be persisted with the control.

[Visual Basic]
Public Property Tag As Object
[C#]
public object Tag {get; set;}

Example

[C#] 

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);     
        } 
    } 
}

[Visual Basic] 

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

See Also

ARControl Class  | ARControl Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.