I have problem with textbox masking
i want to add "-" sign when textbox text length is 2 but when i do that the cursor comes in the start how i over com that thing
Code
dim str as string = "-"
Text Box Change Event
if txtbox.text.length =2 then
txtbox.text = txtbox.text & str
end if
but when ever i try to do that the cursor in the textbox comes in the start
how i slove this problem.
i want to add "-" sign when textbox text length is 2 but when i do that the cursor comes in the start how i over com that thing
Code
dim str as string = "-"
Text Box Change Event
if txtbox.text.length =2 then
txtbox.text = txtbox.text & str
end if
but when ever i try to do that the cursor in the textbox comes in the start
how i slove this problem.