Results 1 to 5 of 5

Thread: Listbox Control Changes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    27

    Listbox Control Changes

    in VB6 it was possible just to edit Listbox entries as follows:

    Listbox1.ListItems(1).Text = "Some random text"

    in VB7 the only option under the ListItems class (Items property) is GetType(). I've been able to use ToString() to return the string, but FromString() doesn't work. How do I do this in VB7?
    CodeMagician
    Ain't Codn' Fun?

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    lol but GetType() is to GET not to GIVE! in vb6 we're used that functions are read/write but in .NET most of them have a read only and another write only functions

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    27
    that's all well and good, but how do I do it? What's the function?
    CodeMagician
    Ain't Codn' Fun?

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Items collection allows you to read or write to the listbox

    ListBox1.Items(2) = "ABC"

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Posts
    27
    Arg. I though I'd tried that. Thanks.
    CodeMagician
    Ain't Codn' Fun?

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