Код | using System; using System.Windows.Forms; class MyButtonClass : Form { private Button mrButton; // Метод-конструктор public MyButtonClass() { mrButton = new Button(); mrButton.Text = "Нажми меня!"; this.Controls.Add(mrButton); } // Основной метод static void Main() { Application.Run(new MyButtonClass()); } // Метод-обработчик событий void MyButtonClickEventHandler(object sender, EventArgs e) { mrButton.Text = "Вы нажали меня!"; } }
|
вот такие ошибки
Код | c:\users\redwhite\documents\visual studio 2010\Projects\vopr\Program.cs(2,14): error CS0234: The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?) c:\users\redwhite\documents\visual studio 2010\Projects\vopr\Program.cs(3,23): error CS0246: The type or namespace name 'Form' could not be found (are you missing a using directive or an assembly reference?) c:\users\redwhite\documents\visual studio 2010\Projects\vopr\Program.cs(5,13): error CS0246: The type or namespace name 'Button' could not be found (are you missing a using directive or an assembly reference?)
|
помогите новичку
|