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
M

mmgbmm

@mmgbmm
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to add one button onto a winForm with code in the design environment
    M mmgbmm

    If you want to add the button and a click event handler, you can do something like this: namespace Test { public partial class MosForm : Form { public MosForm() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { Button Mybutton = new Button(); Mybutton.Text = "My Button"; Mybutton.Location = new Point(12, 12); this.Controls.Add(Mybutton); Mybutton.Click += new EventHandler(Mybutton_Click); } private void Mybutton_Click(object sender, EventArgs e) { textBox1.Text = "All done"; } } }

    C# design tutorial question workspace
  • Login

  • Don't have an account? Register

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