ActiveReports Developer 7
Visible Property
See Also  Example
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > ARControl Class : Visible Property

Glossary Item Box

Sets or returns a value indicating whether the control will be printed.

Syntax

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

Property Value

A Boolean value.  Default is True.

Example

C#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{
    if (this.textBox2.Value.ToString() == "ALFKI")
    {
        this.textBox2.Visible = false;
    }
    else
    {
        this.textBox2.Visible = true;
    }
}
Visual BasicCopy Code
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
    If Me.TextBox1.Value = "ALFKI" Then
        Me.TextBox1.Visible = False
    Else
        Me.TextBox1.Visible = True
    End If
End Sub

See Also