<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FGUI_Windows_Forms%2FIntroduction</id>
		<title>Csharp/CSharp Tutorial/GUI Windows Forms/Introduction - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FGUI_Windows_Forms%2FIntroduction"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Introduction&amp;action=history"/>
		<updated>2026-04-29T23:44:45Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Introduction&amp;diff=5459&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Introduction&amp;diff=5459&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Introduction&amp;diff=5460&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Introduction&amp;diff=5460&amp;oldid=prev"/>
				<updated>2010-05-26T12:15:35Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==A form-based Windows Skeleton==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System; &lt;br /&gt;
using System.Windows.Forms; &lt;br /&gt;
 &lt;br /&gt;
class WinSkel : Form { &lt;br /&gt;
 &lt;br /&gt;
  public WinSkel() { &lt;br /&gt;
    Text = &amp;quot;A Windows Skeleton&amp;quot;; &lt;br /&gt;
  }   &lt;br /&gt;
 &lt;br /&gt;
  [STAThread] &lt;br /&gt;
  public static void Main() { &lt;br /&gt;
    WinSkel skel = new WinSkel();&lt;br /&gt;
    Application.Run(skel); &lt;br /&gt;
  } &lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Button click handler==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
public class ButtonClickEvent : System.Windows.Forms.Form&lt;br /&gt;
{&lt;br /&gt;
  private System.Windows.Forms.Button button1;&lt;br /&gt;
  private System.Windows.Forms.TextBox textBox1;&lt;br /&gt;
  public ButtonClickEvent()&lt;br /&gt;
  {&lt;br /&gt;
    Text = &amp;quot;Test WinForm&amp;quot;;&lt;br /&gt;
    ForeColor = System.Drawing.Color.Yellow;&lt;br /&gt;
    button1 = new System.Windows.Forms.Button();&lt;br /&gt;
    textBox1 = new System.Windows.Forms.TextBox();&lt;br /&gt;
    // button control and its properties&lt;br /&gt;
    button1.Location = new System.Drawing.Point(8, 32);&lt;br /&gt;
    button1.Name = &amp;quot;button1&amp;quot;;&lt;br /&gt;
    button1.Size = new System.Drawing.Size(104, 32);&lt;br /&gt;
    button1.TabIndex = 0;&lt;br /&gt;
    button1.Text = &amp;quot;Click Me&amp;quot;;&lt;br /&gt;
        &lt;br /&gt;
    // text box control and its properties&lt;br /&gt;
    textBox1.Location = new System.Drawing.Point(24, 104);&lt;br /&gt;
    textBox1.Name = &amp;quot;textBox1&amp;quot;;&lt;br /&gt;
    textBox1.Size = new System.Drawing.Size(184, 20);&lt;br /&gt;
    textBox1.TabIndex = 1;&lt;br /&gt;
    textBox1.Text = &amp;quot;textBox1&amp;quot;;&lt;br /&gt;
        &lt;br /&gt;
    // Adding controls to the fomr&lt;br /&gt;
    Controls.AddRange(new System.Windows.Forms.Control[]{textBox1, button1} );&lt;br /&gt;
    button1.Click += new System.EventHandler(button1_Click);&lt;br /&gt;
                    &lt;br /&gt;
  }&lt;br /&gt;
  private void button1_Click(object sender,System.EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    textBox1.Text = &amp;quot;Button is clicked&amp;quot;;&lt;br /&gt;
    MessageBox.Show(&amp;quot;Button is clicked&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  public static int Main()&lt;br /&gt;
  {&lt;br /&gt;
    Application.Run(new ButtonClickEvent());&lt;br /&gt;
    return 0;&lt;br /&gt;
  }       &lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Empty Form==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class EmptyForm : System.Windows.Forms.Form&lt;br /&gt;
{&lt;br /&gt;
  public EmptyForm()&lt;br /&gt;
  {&lt;br /&gt;
  }&lt;br /&gt;
  public static int Main()&lt;br /&gt;
  {&lt;br /&gt;
    Application.Run(new EmptyForm());&lt;br /&gt;
    return 0;&lt;br /&gt;
  }       &lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Exit application==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System; &lt;br /&gt;
using System.Windows.Forms; &lt;br /&gt;
using System.Drawing; &lt;br /&gt;
 &lt;br /&gt;
class FormExit : Form { &lt;br /&gt;
  Button StopButton; &lt;br /&gt;
 &lt;br /&gt;
  public FormExit() { &lt;br /&gt;
    Text = &amp;quot;Adding a Stop Button&amp;quot;; &lt;br /&gt;
 &lt;br /&gt;
    StopButton = new Button(); &lt;br /&gt;
    StopButton.Text = &amp;quot;Stop&amp;quot;; &lt;br /&gt;
    StopButton.Location = new Point(100, 100); &lt;br /&gt;
 &lt;br /&gt;
    StopButton.Click += StopButtonClick; &lt;br /&gt;
    Controls.Add(StopButton); &lt;br /&gt;
  }   &lt;br /&gt;
 &lt;br /&gt;
  [STAThread] &lt;br /&gt;
  public static void Main() { &lt;br /&gt;
    FormExit skel = new FormExit(); &lt;br /&gt;
 &lt;br /&gt;
    Application.Run(skel); &lt;br /&gt;
  } &lt;br /&gt;
 &lt;br /&gt;
  protected void StopButtonClick(object who, EventArgs e) { &lt;br /&gt;
     Application.Exit(); &lt;br /&gt;
  } &lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==First Window Application==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
    using System.Drawing;&lt;br /&gt;
    using System.Collections;&lt;br /&gt;
    using System.ruponentModel;&lt;br /&gt;
    using System.Windows.Forms;&lt;br /&gt;
    using System.Data;&lt;br /&gt;
    &lt;br /&gt;
    public class MyFirstWindow : System.Windows.Forms.Form&lt;br /&gt;
    {&lt;br /&gt;
        public MyFirstWindow()&lt;br /&gt;
        {&lt;br /&gt;
            InitializeComponent();&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        &lt;br /&gt;
        private void InitializeComponent()&lt;br /&gt;
        {&lt;br /&gt;
            this.Size = new System.Drawing.Size(300,300);&lt;br /&gt;
            this.Text = &amp;quot;MyFirstWindow&amp;quot;;&lt;br /&gt;
        }&lt;br /&gt;
        &lt;br /&gt;
        public static void Main(string[] args) &lt;br /&gt;
        {&lt;br /&gt;
            Application.Run(new MyFirstWindow());&lt;br /&gt;
        }&lt;br /&gt;
    }&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Subclass Form to create a window==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class MainWindow : Form&lt;br /&gt;
{&lt;br /&gt;
    public MainWindow(){}&lt;br /&gt;
}&lt;br /&gt;
public class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static int Main(string[] args) &lt;br /&gt;
  {&lt;br /&gt;
    Application.Run(new MainWindow());&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Use Application.Run to load window application==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class MainWindow : Form&lt;br /&gt;
{&lt;br /&gt;
    public MainWindow(){}&lt;br /&gt;
}&lt;br /&gt;
public class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static int Main(string[] args) &lt;br /&gt;
  {&lt;br /&gt;
    Application.Run(new MainWindow());&lt;br /&gt;
    return 0;&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>