can i plz ask something else ..
i found it a common question ..
how finally can we reposition the cursor at the beggining of the mtb on enter it?
when you place tha selectionstart to 0 the cursor moved at the beginning but the whole text is being reversed on key press event .can i reverse it one more time?
is this a logic way?
the code is working..
so where ever you enter with the mouse in the masked text box
when you go to enter something the cursor moves at the beginning..
point me if there is a mistake..(plz i mean it.i need to learn)
i found it a common question ..
how finally can we reposition the cursor at the beggining of the mtb on enter it?
when you place tha selectionstart to 0 the cursor moved at the beginning but the whole text is being reversed on key press event .can i reverse it one more time?
is this a logic way?
the code is working..
VB.NET:
Private Sub MaskedTextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MaskedTextBox1.KeyPress
Dim i As Integer
For i = 0 To Len(Me.MaskedTextBox1.Text)
Me.MaskedTextBox1.SelectionStart = i
Next
StrReverse(Me.MaskedTextBox1.Text)
End Sub
when you go to enter something the cursor moves at the beginning..
point me if there is a mistake..(plz i mean it.i need to learn)
Last edited: