Results 1 to 2 of 2

Thread: [RESOLVED] [2005] changing content of selecteditem in a listbox??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Resolved [RESOLVED] [2005] changing content of selecteditem in a listbox??

    i have a listbox in which i add object "myobj" in the listbox.. i want to replace the object of selecteditem...

    i tried

    VB Code:
    1. list1.selecteditem=new myobj(1,"hello")

    but this doesn't do anything

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    128

    Re: [2005] changing content of selecteditem in a listbox??

    i used list1.items.item(list1.selectedindex)=new myobj(1,"hello")

    instead and it's workin..

    p.s. lol almost each time recently when i post here, i immediately gets the answer afterwards by myself lolz... this forum must be a source of inspiration

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