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. C#
  4. List<string> Help</string>

List<string> Help</string>

Scheduled Pinned Locked Moved C#
helptutorialquestion
2 Posts 2 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.
  • G Offline
    G Offline
    Gregory Bryant
    wrote on last edited by
    #1

    Trying to Fill List string Items = new List string(); with textBox1.Text. Anyone help me out on how to do this, or point me to where I can Learn how? I want the code to read textBox1.Text until endofline add word to List then go to the next until the end.

    C 1 Reply Last reply
    0
    • G Gregory Bryant

      Trying to Fill List string Items = new List string(); with textBox1.Text. Anyone help me out on how to do this, or point me to where I can Learn how? I want the code to read textBox1.Text until endofline add word to List then go to the next until the end.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You can use the split method on the string class to break the text in the textbox into lines, then you will have a string array to work with.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      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