Gets whether the control contains a null value.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Overridable Function IsNull() As Boolean |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As SuperEditBase
Dim value As Boolean
value = instance.IsNull()
|
| C# | |
|---|
public virtual bool IsNull() |
Return Value
true if the control contains the null value;
false otherwise
Example
| C# | Copy Code |
|---|
privatevoidForm1_Load(objectsender,System.EventArgse)
{
control.AllowNull=true;
}
privatevoidcontrol_MouseDown(objectsender,System.Windows.Forms.MouseEventArgse)
{
boolbvalue;
bvalue=control.IsNull();
if(bvalue)
{
control.Value=500;
}
} |
| Visual Basic | Copy Code |
|---|
PrivateSubForm1_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.Load
control.AllowNull=True
EndSub
PrivateSubcontrol_MouseDown(ByValsenderAsObject,ByValeAsSystem.Windows.Forms.MouseEventArgs)HandlesCurrency1.MouseDown
DimbvalueAsBoolean
bvalue=control.IsNull()
IfbvalueThen
control.Text=500
EndIf
EndSub |
Remarks
See Also