Guest User

Untitled

a guest
Jun 22nd, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2. using System.Windows.Forms;
  3.  
  4. class MyButtonClass: Form
  5. {
  6.     private Button mrButton;
  7.     public MyButtonClass()
  8.     {
  9.         mrButton = new Button();
  10.         mrButton.Text = “Нажми меня!;
  11.         this.Controls.Add(mrButton);
  12.     }
  13.     static void Main()
  14.     {
  15.         Application.Run(new MyButtonClass());
  16.     }
  17.     void MyButtonClickEventHandler(object sender, EventArgs e)
  18.     {
  19.         mrButton.Text = “Вы нажали меня!;
  20.     }
  21. }
Add Comment
Please, Sign In to add comment