could you tell me how to make the contents of a listbox to be copyable.

Discussion in 'AutoCAD' started by youngman, Jul 21, 2004.

  1. youngman

    youngman Guest

    hi,

    could you tell me how to make the contents of a listbox to be copyable.

    thank you

    regards
     
    youngman, Jul 21, 2004
    #1
  2. youngman

    Joe Sutphin Guest

    Please explain what you mean by "copyable"

    Joe
     
    Joe Sutphin, Jul 21, 2004
    #2
  3. youngman

    lorier Guest

    hi,
    i don't know the answer to your question, but one way to get similar results would be to cycle through the listbox items selected, grab the data that you want to copy and format it into one string of text and then with

    Dim mydata as DataObject
    Sub __
    Set mydata = New DataObject
    mydata.SetText textstringhere
    mydata.PutInClipboard
    End Sub

    you should be able to paste the listbox contents elsewhere.
     
    lorier, Jul 21, 2004
    #3
  4. youngman

    youngman Guest

    hi,
    i just want to copy the contents$B!!(Bin a listbox.
    just as we do everyday in ms windows.

    thank you
     
    youngman, Jul 22, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.