ActiveReports 9
Value Property (TextBox)
Example 

Gets or sets the value of the control before formatting.
Syntax
'Declaration
 
Public Property Value As System.Object
public System.object Value {get; set;}

Property Value

An object that represents the current value of the control.
Example
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
Requirements

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

See Also

Reference

TextBox Class
TextBox Members

 

 


Copyright © 2014 GrapeCity, inc. All rights reserved

Support Forum