Spread Windows Forms 7.0 Product Documentation
Value Property
See Also  Example Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : Value Property


Glossary Item Box

Gets or sets the unformatted value of the edit control.

Syntax

Visual Basic (Declaration) 
Public Overridable Property Value As Object
Visual Basic (Usage)Copy Code
Dim instance As SuperEditBase
Dim value As Object
 
instance.Value = value
 
value = instance.Value
C# 
public virtual object Value {get; set;}

Property Value

Object containing the unformatted contents of the edit control

Remarks

This property is available at run time only.

Contrast this property with the Text property.

Note: If the control contains an invalid value, the Value property returns Null.

Example

C#Copy Code
private void control_TextChanged(object sender, System.EventArgs e)
{
control.Text = textBox1.Text;
control2.Value = control.Text;        
}
Visual BasicCopy Code
Private Sub control_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Text1.TextChanged
control.Text = TextBox1.Text
control2.Value = control.Text
End Sub

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.