CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Location
    london
    Posts
    16

    data from listbox to textbox

    How do I copy data from a listbox to a textbox at run-time keeping the same format - ie. look like a list?

    Is there a way to perform an OLE drag and drop operation at run-time without actually moving the mouse from source to target object?

    Thanks a lot for your help.
    Ivan


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: data from listbox to textbox

    something like this?
    for i = 0 to listbox.listcount-1
    strText = strText & listbox.list(i) & vbcrlf
    next i
    textbox.text = strText

    make sure your textbox's multiline property is set to true.


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