Subject: Set cursor at specific location in text box
Posted By: pritz Post Date: 8/13/2005 7:43:08 AM
Hi
i am dealing with one problem it is

I wouldlike to set the cursor at specific position i.e

consider a text box i type 100 then i want a automatic "," to appear for that i am copying text to a string and then pasting it RESULt is (100,)
now i typed 0 the result is 0100, ??????????
it should be something like 100,0 .Remember typing should be always start from right to left.
if someone can help me then it would be a gr8 help to me

Reply By: marcostraf Reply Date: 8/15/2005 12:22:26 PM
This code appends a comma at the end of the text, and leaves the cursor at the end:

    Text1.SelStart = Len(Text1.Text)
    Text1.SelText = ","

Marco

Go to topic 33842

Return to index page 489
Return to index page 488
Return to index page 487
Return to index page 486
Return to index page 485
Return to index page 484
Return to index page 483
Return to index page 482
Return to index page 481
Return to index page 480