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. How I Can Design this Form ?

How I Can Design this Form ?

Scheduled Pinned Locked Moved C#
csharpdesignhelptutorialquestion
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.
  • M Offline
    M Offline
    mm310
    wrote on last edited by
    #1

    I need split text form text box For Example : this pictures http://www.cpestudents.net/upload/up/sharpd.gif[^] please help me

    E 1 Reply Last reply
    0
    • M mm310

      I need split text form text box For Example : this pictures http://www.cpestudents.net/upload/up/sharpd.gif[^] please help me

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      If I understood correctly what you want, try this:string[] parts = this.txtFullName.Text.Split(' '); this.txtFirstName.Text = parts[0]; this.txtSecondName.Text = parts[1]; this.txtLastName.Text = parts[2];
      Of course you'll probably need to do some more validation but that method will work :-D. Ed

      M 1 Reply Last reply
      0
      • E Ed Poore

        If I understood correctly what you want, try this:string[] parts = this.txtFullName.Text.Split(' '); this.txtFirstName.Text = parts[0]; this.txtSecondName.Text = parts[1]; this.txtLastName.Text = parts[2];
        Of course you'll probably need to do some more validation but that method will work :-D. Ed

        M Offline
        M Offline
        mm310
        wrote on last edited by
        #3

        thanks

        L 1 Reply Last reply
        0
        • M mm310

          thanks

          L Offline
          L Offline
          Luis Alonso Ramos
          wrote on last edited by
          #4

          Just remember to think about what would happen if the full name didn't have middle name, or if it had a compound last name, three names, and so on. -- LuisR


          Luis Alonso Ramos Intelectix - Chihuahua, Mexico Not much here: My CP Blog!

          The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005

          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