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; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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