ActiveReports6 Assembly > DataDynamics.ActiveReports Namespace > TextBox Class : Value Property |
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 the OutputFormat //is applied to every record this.TextBox1.Value = this.TextBox1.Value; this.txtShippedDate.Value = this.txtShippedDate.Value; }
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format If Me.TextBox1.Value = 10249 Then Me.TextBox2.OutputFormat = "$#,##0.00" Me.TextBox2.ForeColor = System.Drawing.Color.Crimson Else Me.TextBox2.OutputFormat = "¥#,##0" Me.TextBox2.ForeColor = System.Drawing.Color.BlueViolet End If 'use the following lines to be sure the OutputFormat 'is applied to every record Me.TextBox1.Value = Me.TextBox1.Value Me.TextBox2.Value = Me.TextBox2.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