PowerTools ActiveReports for .NET 9.0J
Value プロパティ (TextBox)
使用例 

書式設定前のコントロールの値を取得または設定します。
構文
'宣言
 
Public Property Value As Object
public 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;
    }
    // OutputFormat が全てのレコードに適用されていることを確認するように次のコメントを使用しください。
    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
	'OutputFormat が全てのレコードに適用されていることを確認するように次のコメントを使用しください。

	Me.TextBox1.Value = Me.TextBox1.Value
	Me.txtShippedDate.Value = Me.txtShippedDate.Value
End Subb
参照

関連項目

TextBox クラス
TextBox メンバ

 

 


©2003-2015 GrapeCity inc. All rights reserved.