Imports Infragistics.Win Imports Infragistics.Win.UltraWinEditors Private Sub MakeNullable() ' Set the Nullable property to true so that when ' the edit portion is cleared, the Text property returns ' Nothing rather than an empty string Me.UltraTextEditor1.Nullable = True ' Set the NullText property to "[none]" so that the user ' knows that the value is not set Me.UltraTextEditor1.NullText = "[none]" ' Initialize the value to Nothing Me.UltraTextEditor1.Text = Nothing End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinEditors; private void MakeNullable() { // Set the Nullable property to true so that when // the edit portion is cleared, the Text property returns // null rather than an empty string this.ultraTextEditor1.Nullable = true; // Set the NullText property to "[none]" so that the user // knows that the value is not set this.ultraTextEditor1.NullText = "[none]"; // Initialize the value to null this.ultraTextEditor1.Text = null; }