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 to create controls @ run time?

how to create controls @ run time?

Scheduled Pinned Locked Moved C#
tutorialquestion
7 Posts 5 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.
  • C Offline
    C Offline
    CoderForEver
    wrote on last edited by
    #1

    when i waz doing some project.......it asks user password....in zat page u can also change ur password..........but i just want to increase z size of z form and add some buttons.....i already create z button @ run time but it is not visible.....and i cant locate z location of z button....hw could i solve it???

    D 1 Reply Last reply
    0
    • C CoderForEver

      when i waz doing some project.......it asks user password....in zat page u can also change ur password..........but i just want to increase z size of z form and add some buttons.....i already create z button @ run time but it is not visible.....and i cant locate z location of z button....hw could i solve it???

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      Obviously English isn't your first language, so just a few points to help you improve and to increase your chances of being understood. waz = was zat = that u = you ur = your (sometimes you're - short for 'you are') z = the @ = at hw = how Creating the button isn't enough. You need to add it to the form's Controls property.

      Button button = new Button();
      button.Text = "&Created in Code";
      button.Size = new Size(100, 23);
      button.Location = new Point(12, 12);
      this.Controls.Add(button);

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      R P C 3 Replies Last reply
      0
      • D DaveyM69

        Obviously English isn't your first language, so just a few points to help you improve and to increase your chances of being understood. waz = was zat = that u = you ur = your (sometimes you're - short for 'you are') z = the @ = at hw = how Creating the button isn't enough. You need to add it to the form's Controls property.

        Button button = new Button();
        button.Text = "&Created in Code";
        button.Size = new Size(100, 23);
        button.Location = new Point(12, 12);
        this.Controls.Add(button);

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        DaveyM69 wrote:

        waz = was zat = that u = you ur = your (sometimes you're - short for 'you are') z = the @ = at hw = how

        Gud1 Dave. :)

        It is a crappy thing, but it's life -^ Carlo Pallini

        1 Reply Last reply
        0
        • D DaveyM69

          Obviously English isn't your first language, so just a few points to help you improve and to increase your chances of being understood. waz = was zat = that u = you ur = your (sometimes you're - short for 'you are') z = the @ = at hw = how Creating the button isn't enough. You need to add it to the form's Controls property.

          Button button = new Button();
          button.Text = "&Created in Code";
          button.Size = new Size(100, 23);
          button.Location = new Point(12, 12);
          this.Controls.Add(button);

          Dave
          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
          Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
          Why are you using VB6? Do you hate yourself? (Christian Graus)

          P Offline
          P Offline
          PandemoniumPasha
          wrote on last edited by
          #4

          DaveyM69 wrote:

          Obviously English isn't your first language

          apparently his member profile says he's from US :suss:

          regards :)

          P 1 Reply Last reply
          0
          • P PandemoniumPasha

            DaveyM69 wrote:

            Obviously English isn't your first language

            apparently his member profile says he's from US :suss:

            regards :)

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            PandemoniumPasha wrote:

            apparently his member profile says he's from US

            That doesn't mean anything. America doesn't have an official language, English is merely the convention, it is perfectly possible that his first language could be a different language.

            "WPF has many lovers. It's a veritable porn star!" - Josh Smith

            As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

            My blog | My articles | MoXAML PowerToys | Onyx

            1 Reply Last reply
            0
            • D DaveyM69

              Obviously English isn't your first language, so just a few points to help you improve and to increase your chances of being understood. waz = was zat = that u = you ur = your (sometimes you're - short for 'you are') z = the @ = at hw = how Creating the button isn't enough. You need to add it to the form's Controls property.

              Button button = new Button();
              button.Text = "&Created in Code";
              button.Size = new Size(100, 23);
              button.Location = new Point(12, 12);
              this.Controls.Add(button);

              Dave
              BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
              Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
              Why are you using VB6? Do you hate yourself? (Christian Graus)

              C Offline
              C Offline
              CoderForEver
              wrote on last edited by
              #6

              Thank you man for helping. About the English, I just wanted to express my question. I think it would be no problem. Bye What about now. I think my English is good.

              D 1 Reply Last reply
              0
              • C CoderForEver

                Thank you man for helping. About the English, I just wanted to express my question. I think it would be no problem. Bye What about now. I think my English is good.

                D Offline
                D Offline
                DaveyM69
                wrote on last edited by
                #7

                No problem. :) Your English is much better here. Complete with capitalisation and punctuation too! Don't be too lazy, badly written text is just hard to read which leads to problems in comprehension for the reader. When you're asking a question to which you need an acurate answer, that is not an ideal situation. I can't think of any situation in life where the kind of English you used before would be preferable. It may look cool in 'txts 2 ur m8s', but amongst intelligent people, such as you will mostly find here, it just makes you look a dick (IMO)!

                Dave
                BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
                Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
                Why are you using VB6? Do you hate yourself? (Christian Graus)

                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