ActiveReports.Viewer3 Request technical support
Enabled Property
See Also  Example


Sets or returns a value indicating whether the PlaceHolder is currently enabled.

Syntax

Visual Basic (Declaration) 
Overrides Public Property Enabled As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PlaceHolder
Dim value As Boolean
 
instance.Enabled = value
 
value = instance.Enabled
C# 
public override bool Enabled {get; set;}

Example

C#Copy Code
private void arv_Load(object sender, System.EventArgs e)
{
   DataDynamics.ActiveReports.Toolbar.PlaceHolder ph =
new DataDynamics.ActiveReports.Toolbar.PlaceHolder();
   ph.Enabled = true;
   ph.ToolTip =
"Do not click here.";
   ph.Visible = true;
   ph.Id = 777;
   arv.Toolbar.Tools.Insert(9, ph);

   rptDD rpt =
new rptDD();
   rpt.Run();
   arv.Document = rpt.Document;
}
Visual BasicCopy Code
Private Sub arv_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arv.Load
    Dim ph As New DataDynamics.ActiveReports.Toolbar.PlaceHolder
    ph.Enabled = True
    ph.ToolTip = "Do not click here."
    ph.Visible = True
    ph.Id = 777
    arv.Toolbar.Tools.Insert(9, ph)

    Dim rpt As New rptDD
    rpt.Run()
    arv.Document = rpt.Document
End Sub

See Also