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. create dynamic text boxes

create dynamic text boxes

Scheduled Pinned Locked Moved C#
csharptutorial
5 Posts 4 Posters 1 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.
  • T Offline
    T Offline
    tauras81
    wrote on last edited by
    #1

    how to create dynamic text boxes in c#.net

    S C A 3 Replies Last reply
    0
    • T tauras81

      how to create dynamic text boxes in c#.net

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      Get it[^]

      Regards, Satips.:rose:

      1 Reply Last reply
      0
      • T tauras81

        how to create dynamic text boxes in c#.net

        C Offline
        C Offline
        Chintan Desai
        wrote on last edited by
        #3

        Textbox txt=new Textbox(); Controls.Add(txt); txt.show();//it wud display txt at top-left corner of the form :rose: -- modified at 8:11 Thursday 7th June, 2007

        Regards Chintan www.visharadsoft.com (Nothing is so purify as KNOWLEDGE)

        A 1 Reply Last reply
        0
        • T tauras81

          how to create dynamic text boxes in c#.net

          A Offline
          A Offline
          AikinX
          wrote on last edited by
          #4

          What did you mean: "dynamic text boxes"? May be you wanted to say how to create text boxes dynamically? There is the solution: private void Form1_Load(object sender, EventArgs e) { TextBox myDynamicTextbox = new TextBox(); myDynamicTextbox.Size = new Size(100, 20); myDynamicTextbox.Location = new System.Drawing.Point(10, 10); this.Controls.Add(myDynamicTextbox); }

          1 Reply Last reply
          0
          • C Chintan Desai

            Textbox txt=new Textbox(); Controls.Add(txt); txt.show();//it wud display txt at top-left corner of the form :rose: -- modified at 8:11 Thursday 7th June, 2007

            Regards Chintan www.visharadsoft.com (Nothing is so purify as KNOWLEDGE)

            A Offline
            A Offline
            AikinX
            wrote on last edited by
            #5

            There is no reason to call method show. Any control is shown up on the form at time it has been added to form's component container P.S. Chintan.Desai, there were many syntax mistakes in you post

            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