Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. listbox

listbox

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    im working on a program that places text into a listbox from a .txt file, but what I want to do is when a line in the listbox is clicked it will place the selected text from the listbox and place it into another text feild in a outside program like a word doc, website text field, or just a text field in another program. is there a way to do this? thanks

    M 1 Reply Last reply
    0
    • A Anonymous

      im working on a program that places text into a listbox from a .txt file, but what I want to do is when a line in the listbox is clicked it will place the selected text from the listbox and place it into another text feild in a outside program like a word doc, website text field, or just a text field in another program. is there a way to do this? thanks

      M Offline
      M Offline
      mikelon
      wrote on last edited by
      #2

      May be you can do this with DDE, Dinamic Data Exchange, it works fine with Excel and work DDE(Word!) = ListBox1.Text (I don't remmember very well, but is something like this)

      A 1 Reply Last reply
      0
      • M mikelon

        May be you can do this with DDE, Dinamic Data Exchange, it works fine with Excel and work DDE(Word!) = ListBox1.Text (I don't remmember very well, but is something like this)

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        I guess I dont understand this example if you could explain more that would be great, o and im using vb.net thanks again

        R 1 Reply Last reply
        0
        • A Anonymous

          I guess I dont understand this example if you could explain more that would be great, o and im using vb.net thanks again

          R Offline
          R Offline
          rswipe
          wrote on last edited by
          #4

          To grab the text from the listbox use text=listbox.selecteditem.text then depending on what program you want to write to very simply: OpenFile(1,filename,outputmode) Writeline(1,text) FileClose(1) something like this anyway.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups