Advertisement
mess0011

ue6_4

May 10th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace WindowsFormsApplication6
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.         private void button1_Click(object sender, EventArgs e)
  21.         {
  22.            
  23.             button1.Text = "Button";
  24.             //Controls.Add(button1);
  25.             button1.Location = new System.Drawing.Point(50, 50);
  26.             button1.Size = new System.Drawing.Size(200, 100);
  27.             button1.BackColor = Color.Purple;
  28.             button1.ForeColor = Color.Red;
  29.             button1.Font = new Font("Serif", 20);
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement