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

    Problem with replacing a value in a listbox

    Ok my listbox starts out with all "none" values. Then when the user selects one of those values and hits a button. I want that value to chnage to the currrent time in the list box. I can only get it to add any new value to the bottom of the list. How can I get it to replace the selected value?


  2. #2

    Re: Problem with replacing a value in a listbox

    if list1.listindex <> -1 then
    list1.list(list1.listindex) = cstr(Now)
    end if

    Charlie Zimmerman
    http://www.freevbcode.com


  3. #3
    Guest

    Thank you!

    Thank you so much, that did the job.


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