visual C#, maskedTextbox, moving cursor to begining on focus
Posted on 2009-05-05
I am developing windows application using VS .net 3.5 using C#, right now in my application i have used Maskedtextboxes. Now i want to know how can i move my cursor to beginning of MaskedTextbox on focus.
Moreover as I want to do the same thing for all maskedtextboxes how can i do it with single function wired with on focus or any other Event .
I have already tried <controlname>.SelectionStart = 0, but its not working.