ActiveReports6 Assembly > DataDynamics.ActiveReports Namespace > ControlCollection Class : IndexOf Method |
private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs) { DataDynamics.ActiveReports.TextBox t = new DataDynamics.ActiveReports.TextBox(); t.Text="Insert text here."; this.Sections[0].Controls.Add (t); System.Windows.Forms.MessageBox.Show (this.Sections[0].Controls.IndexOf(t).ToString()); }
Private Sub rptDD_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart Dim t As New DataDynamics.ActiveReports.TextBox t.Text = "Insert text here." Me.Sections(0).Controls.Add(t) MessageBox.Show(Me.Sections(0).Controls.IndexOf(t)) End Sub
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