<?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%2FCursors</id>
		<title>Csharp/CSharp Tutorial/GUI Windows Forms/Cursors - История изменений</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%2FCursors"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Cursors&amp;action=history"/>
		<updated>2026-04-30T01:39:32Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Cursors&amp;diff=5375&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/Cursors&amp;diff=5375&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/Cursors&amp;diff=5376&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/Cursors&amp;diff=5376&amp;oldid=prev"/>
				<updated>2010-05-26T12:15:10Z</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;==All Cursor constant values==&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.Windows.Forms;&lt;br /&gt;
   &lt;br /&gt;
class MouseCursorsProperty: Form&lt;br /&gt;
{&lt;br /&gt;
     Label[] acntl = new Label[28];&lt;br /&gt;
   &lt;br /&gt;
     public static void Main()&lt;br /&gt;
     {&lt;br /&gt;
          Application.Run(new MouseCursorsProperty());&lt;br /&gt;
     }&lt;br /&gt;
     public MouseCursorsProperty()&lt;br /&gt;
     {&lt;br /&gt;
          Cursor[] acursor = &lt;br /&gt;
          { &lt;br /&gt;
               Cursors.AppStarting, Cursors.Arrow,       Cursors.Cross, &lt;br /&gt;
               Cursors.Default,     Cursors.Hand,        Cursors.Help,     &lt;br /&gt;
               Cursors.HSplit,      Cursors.IBeam,       Cursors.No, &lt;br /&gt;
               Cursors.NoMove2D,    Cursors.NoMoveHoriz, Cursors.NoMoveVert,&lt;br /&gt;
               Cursors.PanEast,     Cursors.PanNE,       Cursors.PanNorth,&lt;br /&gt;
               Cursors.PanNW,       Cursors.PanSE,       Cursors.PanSouth,&lt;br /&gt;
               Cursors.PanSW,       Cursors.PanWest,     Cursors.SizeAll,&lt;br /&gt;
               Cursors.SizeNESW,    Cursors.SizeNS,      Cursors.SizeNWSE,&lt;br /&gt;
               Cursors.SizeWE,      Cursors.UpArrow,     Cursors.VSplit, &lt;br /&gt;
               Cursors.WaitCursor&lt;br /&gt;
          };&lt;br /&gt;
          string[] astrCursor = &lt;br /&gt;
          { &lt;br /&gt;
               &amp;quot;AppStarting&amp;quot;,       &amp;quot;Arrow&amp;quot;,             &amp;quot;Cross&amp;quot;,       &lt;br /&gt;
               &amp;quot;Default&amp;quot;,           &amp;quot;Hand&amp;quot;,              &amp;quot;Help&amp;quot;,     &lt;br /&gt;
               &amp;quot;HSplit&amp;quot;,            &amp;quot;IBeam&amp;quot;,             &amp;quot;No&amp;quot;,          &lt;br /&gt;
               &amp;quot;NoMove2D&amp;quot;,          &amp;quot;NoMoveHoriz&amp;quot;,       &amp;quot;NoMoveVert&amp;quot;,&lt;br /&gt;
               &amp;quot;PanEast&amp;quot;,           &amp;quot;PanNE&amp;quot;,             &amp;quot;PanNorth&amp;quot;,    &lt;br /&gt;
               &amp;quot;PanNW&amp;quot;,             &amp;quot;PanSE&amp;quot;,             &amp;quot;PanSouth&amp;quot;,&lt;br /&gt;
               &amp;quot;PanSW&amp;quot;,             &amp;quot;PanWest&amp;quot;,           &amp;quot;SizeAll&amp;quot;,     &lt;br /&gt;
               &amp;quot;SizeNESW&amp;quot;,          &amp;quot;SizeNS&amp;quot;,            &amp;quot;SizeNWSE&amp;quot;,&lt;br /&gt;
               &amp;quot;SizeWE&amp;quot;,            &amp;quot;UpArrow&amp;quot;,           &amp;quot;VSplit&amp;quot;,      &lt;br /&gt;
               &amp;quot;WaitCursor&amp;quot; &lt;br /&gt;
          };&lt;br /&gt;
   &lt;br /&gt;
          Text = &amp;quot;Mouse Cursors Using Cursor Property&amp;quot;;&lt;br /&gt;
   &lt;br /&gt;
          for (int i = 0; i &amp;lt; 28; i++)&lt;br /&gt;
          {&lt;br /&gt;
               acntl[i] = new Label();&lt;br /&gt;
               acntl[i].Parent = this;&lt;br /&gt;
               acntl[i].Text = astrCursor[i];&lt;br /&gt;
               acntl[i].Cursor = acursor[i]; &lt;br /&gt;
               acntl[i].BorderStyle = BorderStyle.FixedSingle;&lt;br /&gt;
          }&lt;br /&gt;
          OnResize(EventArgs.Empty);&lt;br /&gt;
     }&lt;br /&gt;
     protected override void OnResize(EventArgs ea)&lt;br /&gt;
     {&lt;br /&gt;
          for (int i = 0; i &amp;lt; acntl.Length; i++)&lt;br /&gt;
          {&lt;br /&gt;
               acntl[i].Bounds = Rectangle.FromLTRB(&lt;br /&gt;
                                        (i % 4    ) * ClientSize.Width  / 4, &lt;br /&gt;
                                        (i / 4    ) * ClientSize.Height / 7,&lt;br /&gt;
                                        (i % 4 + 1) * ClientSize.Width  / 4, &lt;br /&gt;
                                        (i / 4 + 1) * ClientSize.Height / 7);&lt;br /&gt;
          }&lt;br /&gt;
     }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Cursor Swap==&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;
using System.Runtime.InteropServices;&lt;br /&gt;
    public class MainForm: System.Windows.Forms.Form&lt;br /&gt;
    {&lt;br /&gt;
        Cursor _handCursor;&lt;br /&gt;
        Cursor _embeddedCursor;&lt;br /&gt;
        Cursor _smileyCursor;&lt;br /&gt;
        private System.Windows.Forms.RadioButton arrowRadioButton;&lt;br /&gt;
        private System.Windows.Forms.RadioButton crossRadioButton;&lt;br /&gt;
        private System.Windows.Forms.RadioButton defaultRadioButton;&lt;br /&gt;
        private System.Windows.Forms.RadioButton handRadioButton;&lt;br /&gt;
        private System.Windows.Forms.RadioButton ibeamRadioButton;&lt;br /&gt;
        private System.Windows.Forms.RadioButton waitRadioButton;&lt;br /&gt;
        private System.Windows.Forms.Button okButton;&lt;br /&gt;
        private System.Windows.Forms.RadioButton smileyRadioButton;&lt;br /&gt;
        private System.Windows.Forms.RadioButton externalRadioButton;&lt;br /&gt;
        private System.Windows.Forms.RadioButton embeddedRadioButton;&lt;br /&gt;
        [DllImport(&amp;quot;user32.dll&amp;quot;, EntryPoint=&amp;quot;LoadCursor&amp;quot;)]&lt;br /&gt;
        private static extern IntPtr InteropLoadCursor(int instance,int resource);&lt;br /&gt;
        const int IDC_HAND = 32649;&lt;br /&gt;
        public MainForm()&lt;br /&gt;
        {&lt;br /&gt;
            InitializeComponent();&lt;br /&gt;
            IntPtr externalHand = InteropLoadCursor(0, IDC_HAND);&lt;br /&gt;
            _handCursor = new Cursor(externalHand);&lt;br /&gt;
            _embeddedCursor = new Cursor(this.GetType(), &amp;quot;Smiley2.cur&amp;quot;);&lt;br /&gt;
            _smileyCursor = new Cursor(&amp;quot;smiley.cur&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        private void InitializeComponent()&lt;br /&gt;
        {&lt;br /&gt;
            this.arrowRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.crossRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.defaultRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.handRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.ibeamRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.waitRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.okButton = new System.Windows.Forms.Button();&lt;br /&gt;
            this.smileyRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.externalRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.embeddedRadioButton = new System.Windows.Forms.RadioButton();&lt;br /&gt;
            this.SuspendLayout();&lt;br /&gt;
            // &lt;br /&gt;
            // arrowRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.arrowRadioButton.Location = new System.Drawing.Point(24, 64);&lt;br /&gt;
            this.arrowRadioButton.Name = &amp;quot;arrowRadioButton&amp;quot;;&lt;br /&gt;
            this.arrowRadioButton.TabIndex = 0;&lt;br /&gt;
            this.arrowRadioButton.Text = &amp;quot;Arrow&amp;quot;;&lt;br /&gt;
            this.arrowRadioButton.CheckedChanged += new System.EventHandler(this.arrowRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // crossRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.crossRadioButton.Location = new System.Drawing.Point(24, 96);&lt;br /&gt;
            this.crossRadioButton.Name = &amp;quot;crossRadioButton&amp;quot;;&lt;br /&gt;
            this.crossRadioButton.TabIndex = 1;&lt;br /&gt;
            this.crossRadioButton.Text = &amp;quot;Cross&amp;quot;;&lt;br /&gt;
            this.crossRadioButton.CheckedChanged += new System.EventHandler(this.crossRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // defaultRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.defaultRadioButton.Location = new System.Drawing.Point(24, 128);&lt;br /&gt;
            this.defaultRadioButton.Name = &amp;quot;defaultRadioButton&amp;quot;;&lt;br /&gt;
            this.defaultRadioButton.TabIndex = 2;&lt;br /&gt;
            this.defaultRadioButton.Text = &amp;quot;Default&amp;quot;;&lt;br /&gt;
            this.defaultRadioButton.CheckedChanged += new System.EventHandler(this.defaultRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // handRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.handRadioButton.Location = new System.Drawing.Point(160, 64);&lt;br /&gt;
            this.handRadioButton.Name = &amp;quot;handRadioButton&amp;quot;;&lt;br /&gt;
            this.handRadioButton.TabIndex = 4;&lt;br /&gt;
            this.handRadioButton.Text = &amp;quot;Hand&amp;quot;;&lt;br /&gt;
            this.handRadioButton.CheckedChanged += new System.EventHandler(this.handRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // ibeamRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.ibeamRadioButton.Location = new System.Drawing.Point(160, 96);&lt;br /&gt;
            this.ibeamRadioButton.Name = &amp;quot;ibeamRadioButton&amp;quot;;&lt;br /&gt;
            this.ibeamRadioButton.TabIndex = 5;&lt;br /&gt;
            this.ibeamRadioButton.Text = &amp;quot;I-Beam&amp;quot;;&lt;br /&gt;
            this.ibeamRadioButton.CheckedChanged += new System.EventHandler(this.ibeamRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // waitRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.waitRadioButton.Location = new System.Drawing.Point(160, 128);&lt;br /&gt;
            this.waitRadioButton.Name = &amp;quot;waitRadioButton&amp;quot;;&lt;br /&gt;
            this.waitRadioButton.TabIndex = 6;&lt;br /&gt;
            this.waitRadioButton.Text = &amp;quot;Wait Cursor&amp;quot;;&lt;br /&gt;
            this.waitRadioButton.CheckedChanged += new System.EventHandler(this.waitRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // okButton&lt;br /&gt;
            // &lt;br /&gt;
            this.okButton.Location = new System.Drawing.Point(192, 16);&lt;br /&gt;
            this.okButton.Name = &amp;quot;okButton&amp;quot;;&lt;br /&gt;
            this.okButton.TabIndex = 7;&lt;br /&gt;
            this.okButton.Text = &amp;quot;OK&amp;quot;;&lt;br /&gt;
            this.okButton.Click += new System.EventHandler(this.okButton_Click);&lt;br /&gt;
            // &lt;br /&gt;
            // smileyRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.smileyRadioButton.Location = new System.Drawing.Point(24, 160);&lt;br /&gt;
            this.smileyRadioButton.Name = &amp;quot;smileyRadioButton&amp;quot;;&lt;br /&gt;
            this.smileyRadioButton.TabIndex = 3;&lt;br /&gt;
            this.smileyRadioButton.Text = &amp;quot;Custom- Smiley&amp;quot;;&lt;br /&gt;
            this.smileyRadioButton.CheckedChanged += new System.EventHandler(this.smileyRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // externalRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.externalRadioButton.Location = new System.Drawing.Point(160, 160);&lt;br /&gt;
            this.externalRadioButton.Name = &amp;quot;externalRadioButton&amp;quot;;&lt;br /&gt;
            this.externalRadioButton.TabIndex = 8;&lt;br /&gt;
            this.externalRadioButton.Text = &amp;quot;External - Hand&amp;quot;;&lt;br /&gt;
            this.externalRadioButton.CheckedChanged += new System.EventHandler(this.externalRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // embeddedRadioButton&lt;br /&gt;
            // &lt;br /&gt;
            this.embeddedRadioButton.Location = new System.Drawing.Point(24, 192);&lt;br /&gt;
            this.embeddedRadioButton.Name = &amp;quot;embeddedRadioButton&amp;quot;;&lt;br /&gt;
            this.embeddedRadioButton.Size = new System.Drawing.Size(168, 24);&lt;br /&gt;
            this.embeddedRadioButton.TabIndex = 9;&lt;br /&gt;
            this.embeddedRadioButton.Text = &amp;quot;Custom- Embedded Smiley&amp;quot;;&lt;br /&gt;
            this.embeddedRadioButton.CheckedChanged += new System.EventHandler(this.embeddedRadioButton_CheckedChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // mainForm&lt;br /&gt;
            // &lt;br /&gt;
            this.AcceptButton = this.okButton;&lt;br /&gt;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
            this.ClientSize = new System.Drawing.Size(292, 254);&lt;br /&gt;
            this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                          this.embeddedRadioButton,&lt;br /&gt;
                                                                          this.externalRadioButton,&lt;br /&gt;
                                                                          this.smileyRadioButton,&lt;br /&gt;
                                                                          this.okButton,&lt;br /&gt;
                                                                          this.waitRadioButton,&lt;br /&gt;
                                                                          this.ibeamRadioButton,&lt;br /&gt;
                                                                          this.handRadioButton,&lt;br /&gt;
                                                                          this.defaultRadioButton,&lt;br /&gt;
                                                                          this.crossRadioButton,&lt;br /&gt;
                                                                          this.arrowRadioButton});&lt;br /&gt;
            this.Text = &amp;quot;Cursor Demo&amp;quot;;&lt;br /&gt;
            this.ResumeLayout(false);&lt;br /&gt;
        }&lt;br /&gt;
        static void Main() &lt;br /&gt;
        {&lt;br /&gt;
            Application.Run(new MainForm());&lt;br /&gt;
        }&lt;br /&gt;
        private void arrowRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = Cursors.Arrow;&lt;br /&gt;
        }&lt;br /&gt;
        private void crossRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = Cursors.Cross;&lt;br /&gt;
        }&lt;br /&gt;
        private void defaultRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = Cursors.Default;&lt;br /&gt;
        }&lt;br /&gt;
        private void handRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = Cursors.Hand;&lt;br /&gt;
        }&lt;br /&gt;
        private void ibeamRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = Cursors.IBeam;&lt;br /&gt;
        }&lt;br /&gt;
        private void waitRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = Cursors.WaitCursor;&lt;br /&gt;
        }&lt;br /&gt;
        private void okButton_Click(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Close();&lt;br /&gt;
        }&lt;br /&gt;
        private void smileyRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = _smileyCursor;&lt;br /&gt;
        }&lt;br /&gt;
        private void externalRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = _handCursor;&lt;br /&gt;
        }&lt;br /&gt;
        private void embeddedRadioButton_CheckedChanged(object sender, System.EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            Cursor = _embeddedCursor;&lt;br /&gt;
        }&lt;br /&gt;
    }&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>