I am using a masked text box in winforms (.net 3.5,C#) to show time in which user enters the time in the format 23:59.
It is working fine excpet when the user enter something like 1:12, or 14:8 it will change to 01:12 and 14:08 which is as required, however after a second it again changes to 1:12 and 14:8. It truncates the leading zeros.
I tried a lot and got a solution to set the custom format in the advanced section of the text box data binding. the text box in not bind so I cannot set this option.
The mask I am using is H:mm.
Any help in this regard will be highly appreciable.