Wednesday, April 11, 2012

MaskedTextBoxt "calculator" input method

I have masked text box. Mask is simple "0000". But, I need my text box having cursor always docked to right, and my text shifting to left when I typing. Just like in ordinary calculator.



 this.TaskInput.Location = new System.Drawing.Point(184, 54);
this.TaskInput.Mask = "000";
this.TaskInput.Name = "TaskInput";
this.TaskInput.PromptChar = '0';
this.TaskInput.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.TaskInput.Size = new System.Drawing.Size(190, 20);
this.TaskInput.TabIndex = 2;


Regards, Dmitry.





No comments:

Post a Comment