Hi!
textbox and button:
I have a textbox that I limited the maxlenght to 10 caracters.
Then if I insert for example 3 caracters its will left 7 blank or white spaces. This 7 blank spaces left I need to be filled automatically with a "---------" until at the maximum of 10 caracters.
In other way, each number of caracter(s) inserted cannot have blank space letf inside of the textbox. Otherwise should be filled with this line "---------".
But if I insert 10 caracters then there is not need to fill the rest of my textbox.
Many thanx
Hemant SrivastavaPosted May 27, 2015, 3:55 PM
For this, you need to add a Masked Text Box on your winForm. and Set following properties either through property window or through code (on Form load method);
this.maskedTextBox1.AsciiOnly = true;
this.maskedTextBox1.Mask = "CCCCCCCCCC";
this.maskedTextBox1.TextMaskFormat = System.Windows.Forms.MaskFormat.IncludePromptAndLiterals;
IsraelPosted Jun 1, 2015, 8:59 AM
IsraelPosted May 29, 2015, 11:38 AM
IsraelPosted May 27, 2015, 11:37 AM
Hemant SrivastavaPosted May 26, 2015, 4:34 PM
IsraelPosted May 26, 2015, 2:44 PM