multiline propery+textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramesh_tankala
    New Member
    • Jul 2006
    • 10

    #1

    multiline propery+textbox

    Hi,,,friends..
    i am using multiline text box for storing address ,suppose my multiline control(address ) is 2nd one,suppose i move from 1st control to 2nd(address) my cursor placed in begining of the text existed in multiline text box(address).i want to cursor end of the text existed in multiline textbox
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi Ramesh,

    what are you trying to say? am really confused while trying to understand your problem.. pls explain in a simple manner..

    Comment

    • ramesh_tankala
      New Member
      • Jul 2006
      • 10

      #3
      hi friend
      i am using multi line text box, if foccus come to that text box ,the cursor blinked in the begining of the existing text,i want to blink at the end of existing text

      Comment

      • BSOB
        New Member
        • Jul 2006
        • 77

        #4
        you need to work with sellength, selstart and seltext. (sel is for selected). without thinking too much i would start a loop

        do until right(text1.sel text,1) = vbcr 'this is a carage return, vb constant. ~ new line
        text1.sellength = text1.sellength +1
        loop
        text1.sellength = text1.selllengt h-1 'this takes the vbcr off the end.
        'im assuming you want to copy the text... not just highlight it.
        clipboard.sette xt=text1.seltex t

        this text has never touched a compiler so it might have typos.
        i hope ive been helpfull. um... good luck my friend? (is that a comunity thing or does just sashi say it?)
        ps, im eating steak for breakfast.

        Comment

        • BSOB
          New Member
          • Jul 2006
          • 77

          #5
          oh yah, forgot to tell you, (you might not know)... put that in the text1_getfocus( ) subroutine. and... replace text1 with your multiline textbox name.

          Comment

          Working...