GrapeCity.ActiveReports.v9 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > TextBox Class : Value Property |
'Declaration Public Property Value As System.Object
public System.object Value {get; set;}
private void detail_Format(object sender, System.EventArgs eArgs) { if (this.TextBox1.Value.ToString() == "10249") { this.txtShippedDate.OutputFormat = "MMMM"; this.txtShippedDate.ForeColor = System.Drawing.Color.Crimson; } else { this.txtShippedDate.OutputFormat = "MMM"; this.txtShippedDate.ForeColor = System.Drawing.Color.Black; } //use the following lines to be sure that the OutputFormat //is applied to every record this.TextBox1.Value = this.TextBox1.Value; this.txtShippedDate.Value = this.txtShippedDate.Value; }
Private Sub detail_Format(sender As Object, eArgs As System.EventArgs) If Me.TextBox1.Value.ToString() = "10249" Then Me.txtShippedDate.OutputFormat = "MMMM" Me.txtShippedDate.ForeColor = System.Drawing.Color.Crimson Else Me.txtShippedDate.OutputFormat = "MMM" Me.txtShippedDate.ForeColor = System.Drawing.Color.Black End If 'use the following lines to be sure that the OutputFormat 'is applied to every record Me.TextBox1.Value = Me.TextBox1.Value Me.txtShippedDate.Value = Me.txtShippedDate.Value 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