I have a textbox account number created where I can enter numbers only. However, upon entering the numbers in the textbox it also displays comma but I do not want any commas to show (upon entering the numbers). Is there a way to fix this?
I created my property settings but it’s not working.
Me.txtAccountNumber.Borderstyle = BorderStyle.None
Me.txtAccountNumber.Checked = False
Me.txtAccountNumber.ControlValue = ""
Me.txtAccountNumber.Dropdownstyle = System.Windows.Forms.ComboBoxStyle.Simple
Me.txtAccountNumber.EntityCode = 7000
Me.txtAccountNumber.FlatStyle = FlatStyle.Flat
Me.txtAccountNumber.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.txtAccountNumber.IsEnabled = False
Me.txtAccountNumber.LabelText = ""
Me.txtAccountNumber.LabelTextAlignment = System.Drawing.ContentAlignment.MiddleLeft
Me.txtAccountNumber.LabelToolTipText = Nothing
Me.txtAccountNumber.LabelVisible = True
Me.txtAccountNumber.Location = New System.Drawing.Point(520, 42)
Me.txtAccountNumber.MaxLength = 4
Me.txtAccountNumber.Name = "txtAccountNumber"
Me.txtAccountNumber.NumberOfCharacters = 15
Me.txtAccountNumber.RatePlanCode = 0
Me.txtAccountNumber.ReadOnly = False
Me.txtAccountNumber.SelectedIndex = -1
Me.txtAccountNumber.SelectedValue = Nothing
Me.txtAccountNumber.Size = New System.Drawing.Size(200, 20)
Me.txtAccountNumber.TabIndex = 7
Me.txtAccountNumber.TextAlign = HorizontalAlignment.Right
Me.txtAccountNumber.TransactionCode = ""
Me.txtAccountNumber.UseDefault = False