CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: listboxa

  1. #1
    Join Date
    Apr 1999
    Posts
    108

    listboxa

    i know this may sound kinda stupid becasue i have asked it before..but cant find the thread.

    how can i select an item in a text box?

    is it like list1.selected 4 (where 4 is the listindex)

    ?

    thanks

    ?

  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: listboxa

    Hi,
    pls check your post!. Do you want selection in "Text Box" or "List Box"?!?
    >
    >how can i select an item in a text box?
    >
    For Text box, you should use SelStart and SelLength.
    Text1.SelStart = 1
    Text1.SelLength = len(text1.text)
    will select thw whole of the text.

    >
    >is it like list1.selected 4 (where 4 is the
    >listindex)
    >
    To select a item ofa List box use ListIndex
    List1.ListIndex = 4 will select the 4th item

    Ravi



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured