Imports Infragistics.Win Imports Infragistics.Win.UltraWinEditors Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Set the FormatString property to the same value as the MaskInput property Me.UltraNumericEditor1.MaskInput = "Qty: nnn" Me.UltraNumericEditor1.FormatString = "Qty: ###" Me.UltraCurrencyEditor1.MaskInput = "Price: $nnn.nn" Me.UltraCurrencyEditor1.FormatString = "Price: $###.##" End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinEditors; private void button1_Click(object sender, System.EventArgs e) { // Set the FormatString property to the same value as the MaskInput property this.ultraNumericEditor1.MaskInput = "Qty: nnn"; this.ultraNumericEditor1.FormatString = "Qty: ###"; this.ultraCurrencyEditor1.MaskInput = "Price: $nnn.nn"; this.ultraCurrencyEditor1.FormatString = "Price: $###.##"; }