This project has moved. For the latest updates, please go here.

MaskedTextBox for TimeSpan Input

Jul 18, 2012 at 9:46 AM
Edited Jul 18, 2012 at 9:50 AM

Hi,

I am using your MaskedTextBox Control for TimeSpan of  format HH:MM .

1) the problem is when i delete Minutes(MM) digits so as  to change them, then Hours(HH) digits are shown in Minutes digit place, after giving Minutes digits the Hours digits are moved to their original place, can i avoid this movement of digits?

 2) How can assign timespan value from code behind (C#)?

i have given in the xaml as following

 <local:MaskedTextBox Mask="00:00" Width="40" Height="25" x:Name="txtTime" Value="1116" FlowDirection="RightToLeft" ></local:MaskedTextBox>

 

Thanks & Regards

dhampall