Click here to Skip to main content
15,893,814 members
Articles / Programming Languages / C#

Extended Cursors for .Net

Rate me:
Please Sign up or sign in to vote.
4.83/5 (25 votes)
2 Feb 2009CPOL13 min read 51.5K   2.8K   69  
A design-time component to make use of animated/multi-coloured cursors
namespace Demo
{
	partial class Form_Main
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		#region Windows Form Designer generated code

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form_Main));
            System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("GroupBox", 0);
            System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("HScrollBar", 1);
            System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Label", 2);
            System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("LinkLabel", 3);
            System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("ListBox", 4);
            System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem("MainMenu", 5);
            System.Windows.Forms.ListViewItem listViewItem7 = new System.Windows.Forms.ListViewItem("PictureBox", 6);
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.splitContainer2 = new System.Windows.Forms.SplitContainer();
            this.label1 = new System.Windows.Forms.Label();
            this.label_TrailHandle = new System.Windows.Forms.Label();
            this.splitContainer3 = new System.Windows.Forms.SplitContainer();
            this.label2 = new System.Windows.Forms.Label();
            this.label_AeroHandle = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label_ElectricHandle = new System.Windows.Forms.Label();
            this.splitContainer4 = new System.Windows.Forms.SplitContainer();
            this.label6 = new System.Windows.Forms.Label();
            this.button3 = new System.Windows.Forms.Button();
            this.panel2 = new System.Windows.Forms.Panel();
            this.button2 = new System.Windows.Forms.Button();
            this.panel1 = new System.Windows.Forms.Panel();
            this.button1 = new System.Windows.Forms.Button();
            this.label4 = new System.Windows.Forms.Label();
            this.splitContainer5 = new System.Windows.Forms.SplitContainer();
            this.label10 = new System.Windows.Forms.Label();
            this.listView_Toolbox = new System.Windows.Forms.ListView();
            this.columnHeader_ToolboxItem = new System.Windows.Forms.ColumnHeader();
            this.imageList_Toolbox = new System.Windows.Forms.ImageList(this.components);
            this.label5 = new System.Windows.Forms.Label();
            this.panel_RuntimeLoadResource = new System.Windows.Forms.Panel();
            this.label_RuntimeResHandle = new System.Windows.Forms.Label();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.label8 = new System.Windows.Forms.Label();
            this.button_LoadResourceRuntime = new System.Windows.Forms.Button();
            this.label7 = new System.Windows.Forms.Label();
            this.panel_Spacer = new System.Windows.Forms.Panel();
            this.panel_RuntimeLoadFile = new System.Windows.Forms.Panel();
            this.button_LoadFileRuntime = new System.Windows.Forms.Button();
            this.label_RuntimeFileLoad = new System.Windows.Forms.Label();
            this.openFileDialog_Cursor = new System.Windows.Forms.OpenFileDialog();
            this.panel_Bottom = new System.Windows.Forms.Panel();
            this.label_Info = new System.Windows.Forms.Label();
            this.panel_AnotherForm = new System.Windows.Forms.Panel();
            this.button_AnotherForm = new System.Windows.Forms.Button();
            this.label9 = new System.Windows.Forms.Label();
            this.extCursor_Trail = new ExtCursors.ExtCursor();
            this.extCursor_AeroWorking = new ExtCursors.ExtCursor();
            this.extCursor_Electric = new ExtCursors.ExtCursor();
            this.extCursorsLinks = new ExtCursors.ExtCursorsLink();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            this.splitContainer2.Panel1.SuspendLayout();
            this.splitContainer2.Panel2.SuspendLayout();
            this.splitContainer2.SuspendLayout();
            this.splitContainer3.Panel1.SuspendLayout();
            this.splitContainer3.Panel2.SuspendLayout();
            this.splitContainer3.SuspendLayout();
            this.splitContainer4.Panel1.SuspendLayout();
            this.splitContainer4.Panel2.SuspendLayout();
            this.splitContainer4.SuspendLayout();
            this.splitContainer5.Panel1.SuspendLayout();
            this.splitContainer5.Panel2.SuspendLayout();
            this.splitContainer5.SuspendLayout();
            this.panel_RuntimeLoadResource.SuspendLayout();
            this.panel_RuntimeLoadFile.SuspendLayout();
            this.panel_Bottom.SuspendLayout();
            this.panel_AnotherForm.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.extCursor_Trail)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.extCursor_AeroWorking)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.extCursor_Electric)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.extCursorsLinks)).BeginInit();
            this.SuspendLayout();
            // 
            // splitContainer1
            // 
            this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.Controls.Add(this.splitContainer4);
            this.splitContainer1.Size = new System.Drawing.Size(639, 412);
            this.splitContainer1.SplitterDistance = 179;
            this.splitContainer1.TabIndex = 2;
            this.splitContainer1.TabStop = false;
            // 
            // splitContainer2
            // 
            this.splitContainer2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer2.Location = new System.Drawing.Point(0, 0);
            this.splitContainer2.Name = "splitContainer2";
            // 
            // splitContainer2.Panel1
            // 
            this.splitContainer2.Panel1.Controls.Add(this.label1);
            this.splitContainer2.Panel1.Controls.Add(this.label_TrailHandle);
            this.extCursorsLinks.SetCursor(this.splitContainer2.Panel1, this.extCursor_Trail);
            this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(16);
            // 
            // splitContainer2.Panel2
            // 
            this.splitContainer2.Panel2.Controls.Add(this.splitContainer3);
            this.splitContainer2.Size = new System.Drawing.Size(639, 179);
            this.splitContainer2.SplitterDistance = 213;
            this.splitContainer2.TabIndex = 0;
            this.splitContainer2.TabStop = false;
            // 
            // label1
            // 
            this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.label1.Location = new System.Drawing.Point(16, 16);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(177, 113);
            this.label1.TabIndex = 0;
            this.label1.Text = "You should see the \'Trail\' cursor when the mouse passes over this area.";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // label_TrailHandle
            // 
            this.label_TrailHandle.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.label_TrailHandle.Location = new System.Drawing.Point(16, 129);
            this.label_TrailHandle.Name = "label_TrailHandle";
            this.label_TrailHandle.Size = new System.Drawing.Size(177, 30);
            this.label_TrailHandle.TabIndex = 1;
            this.label_TrailHandle.Text = "The handle for this cursor:";
            this.label_TrailHandle.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            // 
            // splitContainer3
            // 
            this.splitContainer3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer3.Location = new System.Drawing.Point(0, 0);
            this.splitContainer3.Name = "splitContainer3";
            // 
            // splitContainer3.Panel1
            // 
            this.splitContainer3.Panel1.Controls.Add(this.label2);
            this.splitContainer3.Panel1.Controls.Add(this.label_AeroHandle);
            this.extCursorsLinks.SetCursor(this.splitContainer3.Panel1, this.extCursor_AeroWorking);
            this.splitContainer3.Panel1.Padding = new System.Windows.Forms.Padding(16);
            // 
            // splitContainer3.Panel2
            // 
            this.splitContainer3.Panel2.Controls.Add(this.label3);
            this.splitContainer3.Panel2.Controls.Add(this.label_ElectricHandle);
            this.extCursorsLinks.SetCursor(this.splitContainer3.Panel2, this.extCursor_Electric);
            this.splitContainer3.Panel2.Padding = new System.Windows.Forms.Padding(16);
            this.splitContainer3.Size = new System.Drawing.Size(422, 179);
            this.splitContainer3.SplitterDistance = 217;
            this.splitContainer3.TabIndex = 0;
            this.splitContainer3.TabStop = false;
            // 
            // label2
            // 
            this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.label2.Location = new System.Drawing.Point(16, 16);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(181, 113);
            this.label2.TabIndex = 1;
            this.label2.Text = "You should see the \'Aero Working\' cursor when the mouse passes over this area.";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // label_AeroHandle
            // 
            this.label_AeroHandle.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.label_AeroHandle.Location = new System.Drawing.Point(16, 129);
            this.label_AeroHandle.Name = "label_AeroHandle";
            this.label_AeroHandle.Size = new System.Drawing.Size(181, 30);
            this.label_AeroHandle.TabIndex = 2;
            this.label_AeroHandle.Text = "The handle for this cursor:";
            this.label_AeroHandle.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            // 
            // label3
            // 
            this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.label3.Location = new System.Drawing.Point(16, 16);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(165, 113);
            this.label3.TabIndex = 2;
            this.label3.Text = "You should see the \'Electric\' cursor when the mouse passes over this area.";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // label_ElectricHandle
            // 
            this.label_ElectricHandle.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.label_ElectricHandle.Location = new System.Drawing.Point(16, 129);
            this.label_ElectricHandle.Name = "label_ElectricHandle";
            this.label_ElectricHandle.Size = new System.Drawing.Size(165, 30);
            this.label_ElectricHandle.TabIndex = 3;
            this.label_ElectricHandle.Text = "The handle for this cursor:";
            this.label_ElectricHandle.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            // 
            // splitContainer4
            // 
            this.splitContainer4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer4.Location = new System.Drawing.Point(0, 0);
            this.splitContainer4.Name = "splitContainer4";
            // 
            // splitContainer4.Panel1
            // 
            this.splitContainer4.Panel1.Controls.Add(this.label6);
            this.splitContainer4.Panel1.Controls.Add(this.button3);
            this.splitContainer4.Panel1.Controls.Add(this.panel2);
            this.splitContainer4.Panel1.Controls.Add(this.button2);
            this.splitContainer4.Panel1.Controls.Add(this.panel1);
            this.splitContainer4.Panel1.Controls.Add(this.button1);
            this.splitContainer4.Panel1.Controls.Add(this.label4);
            this.splitContainer4.Panel1.Padding = new System.Windows.Forms.Padding(16);
            // 
            // splitContainer4.Panel2
            // 
            this.splitContainer4.Panel2.Controls.Add(this.splitContainer5);
            this.splitContainer4.Size = new System.Drawing.Size(639, 229);
            this.splitContainer4.SplitterDistance = 213;
            this.splitContainer4.TabIndex = 0;
            // 
            // label6
            // 
            this.label6.Dock = System.Windows.Forms.DockStyle.Top;
            this.label6.Location = new System.Drawing.Point(16, 137);
            this.label6.Name = "label6";
            this.label6.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
            this.label6.Size = new System.Drawing.Size(177, 51);
            this.label6.TabIndex = 8;
            this.label6.Text = "(Note that the top button adds a cross-hair to the cursor)";
            this.label6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            // 
            // button3
            // 
            this.button3.Dock = System.Windows.Forms.DockStyle.Top;
            this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image")));
            this.button3.Location = new System.Drawing.Point(16, 114);
            this.button3.Name = "button3";
            this.button3.Size = new System.Drawing.Size(177, 23);
            this.button3.TabIndex = 7;
            this.button3.Text = "Image 3 (DataNavigator)";
            this.button3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.button3.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.button3.UseVisualStyleBackColor = true;
            this.button3.Click += new System.EventHandler(this.button3_Click);
            // 
            // panel2
            // 
            this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel2.Location = new System.Drawing.Point(16, 106);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(177, 8);
            this.panel2.TabIndex = 6;
            // 
            // button2
            // 
            this.button2.Dock = System.Windows.Forms.DockStyle.Top;
            this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image")));
            this.button2.Location = new System.Drawing.Point(16, 83);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(177, 23);
            this.button2.TabIndex = 5;
            this.button2.Text = "Image 2 (DataGridView)";
            this.button2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.button2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.button2.UseVisualStyleBackColor = true;
            this.button2.Click += new System.EventHandler(this.button2_Click);
            // 
            // panel1
            // 
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(16, 75);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(177, 8);
            this.panel1.TabIndex = 4;
            // 
            // button1
            // 
            this.button1.Dock = System.Windows.Forms.DockStyle.Top;
            this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image")));
            this.button1.Location = new System.Drawing.Point(16, 52);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(177, 23);
            this.button1.TabIndex = 3;
            this.button1.Text = "Image 1 (DataGrid)";
            this.button1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            this.button1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // label4
            // 
            this.label4.Dock = System.Windows.Forms.DockStyle.Top;
            this.label4.Location = new System.Drawing.Point(16, 16);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(177, 36);
            this.label4.TabIndex = 2;
            this.label4.Text = "Creating cursors from images at runtime...";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // splitContainer5
            // 
            this.splitContainer5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.splitContainer5.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer5.Location = new System.Drawing.Point(0, 0);
            this.splitContainer5.Name = "splitContainer5";
            // 
            // splitContainer5.Panel1
            // 
            this.splitContainer5.Panel1.Controls.Add(this.label10);
            this.splitContainer5.Panel1.Controls.Add(this.listView_Toolbox);
            this.splitContainer5.Panel1.Controls.Add(this.label5);
            this.splitContainer5.Panel1.Padding = new System.Windows.Forms.Padding(16);
            // 
            // splitContainer5.Panel2
            // 
            this.splitContainer5.Panel2.Controls.Add(this.panel_RuntimeLoadResource);
            this.splitContainer5.Panel2.Controls.Add(this.panel_Spacer);
            this.splitContainer5.Panel2.Controls.Add(this.panel_RuntimeLoadFile);
            this.splitContainer5.Panel2.Padding = new System.Windows.Forms.Padding(4);
            this.splitContainer5.Size = new System.Drawing.Size(422, 229);
            this.splitContainer5.SplitterDistance = 217;
            this.splitContainer5.TabIndex = 0;
            // 
            // label10
            // 
            this.label10.Dock = System.Windows.Forms.DockStyle.Top;
            this.label10.Location = new System.Drawing.Point(16, 176);
            this.label10.Name = "label10";
            this.label10.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
            this.label10.Size = new System.Drawing.Size(181, 36);
            this.label10.TabIndex = 9;
            this.label10.Text = "(Note that the cross-hairs are added automatically)";
            this.label10.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            // 
            // listView_Toolbox
            // 
            this.listView_Toolbox.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.columnHeader_ToolboxItem});
            this.listView_Toolbox.Dock = System.Windows.Forms.DockStyle.Top;
            this.listView_Toolbox.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.listView_Toolbox.HideSelection = false;
            this.listView_Toolbox.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
            listViewItem1,
            listViewItem2,
            listViewItem3,
            listViewItem4,
            listViewItem5,
            listViewItem6,
            listViewItem7});
            this.listView_Toolbox.Location = new System.Drawing.Point(16, 52);
            this.listView_Toolbox.MultiSelect = false;
            this.listView_Toolbox.Name = "listView_Toolbox";
            this.listView_Toolbox.Size = new System.Drawing.Size(181, 124);
            this.listView_Toolbox.SmallImageList = this.imageList_Toolbox;
            this.listView_Toolbox.TabIndex = 0;
            this.listView_Toolbox.UseCompatibleStateImageBehavior = false;
            this.listView_Toolbox.View = System.Windows.Forms.View.Details;
            this.listView_Toolbox.SelectedIndexChanged += new System.EventHandler(this.listView_Toolbox_SelectedIndexChanged);
            // 
            // columnHeader_ToolboxItem
            // 
            this.columnHeader_ToolboxItem.Width = 155;
            // 
            // imageList_Toolbox
            // 
            this.imageList_Toolbox.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList_Toolbox.ImageStream")));
            this.imageList_Toolbox.TransparentColor = System.Drawing.Color.Fuchsia;
            this.imageList_Toolbox.Images.SetKeyName(0, "Control_GroupBox.bmp");
            this.imageList_Toolbox.Images.SetKeyName(1, "Control_HScrollBar.bmp");
            this.imageList_Toolbox.Images.SetKeyName(2, "Control_Label.bmp");
            this.imageList_Toolbox.Images.SetKeyName(3, "Control_LinkLabel.bmp");
            this.imageList_Toolbox.Images.SetKeyName(4, "Control_ListBox.bmp");
            this.imageList_Toolbox.Images.SetKeyName(5, "Control_MainMenu.bmp");
            this.imageList_Toolbox.Images.SetKeyName(6, "Control_PictureBox.bmp");
            // 
            // label5
            // 
            this.label5.Dock = System.Windows.Forms.DockStyle.Top;
            this.label5.Location = new System.Drawing.Point(16, 16);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(181, 36);
            this.label5.TabIndex = 1;
            this.label5.Text = "Creating cursors from image lists at runtime...";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // panel_RuntimeLoadResource
            // 
            this.panel_RuntimeLoadResource.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.panel_RuntimeLoadResource.Controls.Add(this.label_RuntimeResHandle);
            this.panel_RuntimeLoadResource.Controls.Add(this.textBox1);
            this.panel_RuntimeLoadResource.Controls.Add(this.label8);
            this.panel_RuntimeLoadResource.Controls.Add(this.button_LoadResourceRuntime);
            this.panel_RuntimeLoadResource.Controls.Add(this.label7);
            this.panel_RuntimeLoadResource.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel_RuntimeLoadResource.Location = new System.Drawing.Point(4, 91);
            this.panel_RuntimeLoadResource.Name = "panel_RuntimeLoadResource";
            this.panel_RuntimeLoadResource.Padding = new System.Windows.Forms.Padding(4);
            this.panel_RuntimeLoadResource.Size = new System.Drawing.Size(189, 130);
            this.panel_RuntimeLoadResource.TabIndex = 2;
            // 
            // label_RuntimeResHandle
            // 
            this.label_RuntimeResHandle.Dock = System.Windows.Forms.DockStyle.Top;
            this.label_RuntimeResHandle.Location = new System.Drawing.Point(4, 110);
            this.label_RuntimeResHandle.Name = "label_RuntimeResHandle";
            this.label_RuntimeResHandle.Size = new System.Drawing.Size(177, 16);
            this.label_RuntimeResHandle.TabIndex = 5;
            this.label_RuntimeResHandle.Text = "Handle: ???";
            this.label_RuntimeResHandle.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            this.label_RuntimeResHandle.Visible = false;
            // 
            // textBox1
            // 
            this.textBox1.Dock = System.Windows.Forms.DockStyle.Top;
            this.textBox1.Location = new System.Drawing.Point(4, 90);
            this.textBox1.Name = "textBox1";
            this.textBox1.ReadOnly = true;
            this.textBox1.Size = new System.Drawing.Size(177, 20);
            this.textBox1.TabIndex = 4;
            this.textBox1.Text = "[Expanding] in Demo.Properties.Resources";
            // 
            // label8
            // 
            this.label8.AutoSize = true;
            this.label8.Dock = System.Windows.Forms.DockStyle.Top;
            this.label8.Location = new System.Drawing.Point(4, 71);
            this.label8.Name = "label8";
            this.label8.Padding = new System.Windows.Forms.Padding(0, 4, 0, 2);
            this.label8.Size = new System.Drawing.Size(82, 19);
            this.label8.TabIndex = 3;
            this.label8.Text = "From Resource:";
            // 
            // button_LoadResourceRuntime
            // 
            this.button_LoadResourceRuntime.Dock = System.Windows.Forms.DockStyle.Top;
            this.button_LoadResourceRuntime.Location = new System.Drawing.Point(4, 48);
            this.button_LoadResourceRuntime.Name = "button_LoadResourceRuntime";
            this.button_LoadResourceRuntime.Size = new System.Drawing.Size(177, 23);
            this.button_LoadResourceRuntime.TabIndex = 2;
            this.button_LoadResourceRuntime.Text = "Load Resource";
            this.button_LoadResourceRuntime.UseVisualStyleBackColor = true;
            this.button_LoadResourceRuntime.Click += new System.EventHandler(this.button_LoadResourceRuntime_Click);
            // 
            // label7
            // 
            this.label7.Dock = System.Windows.Forms.DockStyle.Top;
            this.label7.Location = new System.Drawing.Point(4, 4);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(177, 44);
            this.label7.TabIndex = 1;
            this.label7.Text = "Press this button to load a cursor from resource at runtime...";
            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // panel_Spacer
            // 
            this.panel_Spacer.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel_Spacer.Location = new System.Drawing.Point(4, 83);
            this.panel_Spacer.Name = "panel_Spacer";
            this.panel_Spacer.Size = new System.Drawing.Size(189, 8);
            this.panel_Spacer.TabIndex = 1;
            // 
            // panel_RuntimeLoadFile
            // 
            this.panel_RuntimeLoadFile.AutoSize = true;
            this.panel_RuntimeLoadFile.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.panel_RuntimeLoadFile.Controls.Add(this.button_LoadFileRuntime);
            this.panel_RuntimeLoadFile.Controls.Add(this.label_RuntimeFileLoad);
            this.panel_RuntimeLoadFile.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel_RuntimeLoadFile.Location = new System.Drawing.Point(4, 4);
            this.panel_RuntimeLoadFile.Name = "panel_RuntimeLoadFile";
            this.panel_RuntimeLoadFile.Padding = new System.Windows.Forms.Padding(4);
            this.panel_RuntimeLoadFile.Size = new System.Drawing.Size(189, 79);
            this.panel_RuntimeLoadFile.TabIndex = 0;
            // 
            // button_LoadFileRuntime
            // 
            this.button_LoadFileRuntime.Cursor = System.Windows.Forms.Cursors.Arrow;
            this.button_LoadFileRuntime.Dock = System.Windows.Forms.DockStyle.Top;
            this.button_LoadFileRuntime.Location = new System.Drawing.Point(4, 48);
            this.button_LoadFileRuntime.Name = "button_LoadFileRuntime";
            this.button_LoadFileRuntime.Size = new System.Drawing.Size(177, 23);
            this.button_LoadFileRuntime.TabIndex = 1;
            this.button_LoadFileRuntime.Text = "Load File...";
            this.button_LoadFileRuntime.UseVisualStyleBackColor = true;
            this.button_LoadFileRuntime.Click += new System.EventHandler(this.button_LoadFileRuntime_Click);
            // 
            // label_RuntimeFileLoad
            // 
            this.label_RuntimeFileLoad.Dock = System.Windows.Forms.DockStyle.Top;
            this.label_RuntimeFileLoad.Location = new System.Drawing.Point(4, 4);
            this.label_RuntimeFileLoad.Name = "label_RuntimeFileLoad";
            this.label_RuntimeFileLoad.Size = new System.Drawing.Size(177, 44);
            this.label_RuntimeFileLoad.TabIndex = 0;
            this.label_RuntimeFileLoad.Text = "Press this button to load a cursor file at runtime...";
            this.label_RuntimeFileLoad.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // openFileDialog_Cursor
            // 
            this.openFileDialog_Cursor.Filter = "All Cursor files|*.cur;*.ani|Cursor files|*.cur|Animated Cursor files|*.ani|All f" +
                "iles|*.*";
            this.openFileDialog_Cursor.Title = "Load Cursor at Runtime";
            // 
            // panel_Bottom
            // 
            this.panel_Bottom.Controls.Add(this.label_Info);
            this.panel_Bottom.Controls.Add(this.panel_AnotherForm);
            this.panel_Bottom.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.panel_Bottom.Location = new System.Drawing.Point(0, 412);
            this.panel_Bottom.Name = "panel_Bottom";
            this.panel_Bottom.Padding = new System.Windows.Forms.Padding(12);
            this.panel_Bottom.Size = new System.Drawing.Size(639, 67);
            this.panel_Bottom.TabIndex = 3;
            // 
            // label_Info
            // 
            this.label_Info.Dock = System.Windows.Forms.DockStyle.Fill;
            this.label_Info.Location = new System.Drawing.Point(12, 12);
            this.label_Info.Name = "label_Info";
            this.label_Info.Size = new System.Drawing.Size(432, 43);
            this.label_Info.TabIndex = 0;
            this.label_Info.Text = "It is the \'extCursorsLinks\' component itself that is adding a property \'Cursor on" +
                " extCursorsLinks\' to all of the controls on this form";
            this.label_Info.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // panel_AnotherForm
            // 
            this.panel_AnotherForm.Controls.Add(this.button_AnotherForm);
            this.panel_AnotherForm.Controls.Add(this.label9);
            this.panel_AnotherForm.Dock = System.Windows.Forms.DockStyle.Right;
            this.panel_AnotherForm.Location = new System.Drawing.Point(444, 12);
            this.panel_AnotherForm.Name = "panel_AnotherForm";
            this.panel_AnotherForm.Size = new System.Drawing.Size(183, 43);
            this.panel_AnotherForm.TabIndex = 1;
            // 
            // button_AnotherForm
            // 
            this.button_AnotherForm.Dock = System.Windows.Forms.DockStyle.Top;
            this.button_AnotherForm.Location = new System.Drawing.Point(0, 18);
            this.button_AnotherForm.Name = "button_AnotherForm";
            this.button_AnotherForm.Size = new System.Drawing.Size(183, 23);
            this.button_AnotherForm.TabIndex = 1;
            this.button_AnotherForm.Text = "Another Form";
            this.button_AnotherForm.UseVisualStyleBackColor = true;
            this.button_AnotherForm.Click += new System.EventHandler(this.button_AnotherForm_Click);
            // 
            // label9
            // 
            this.label9.Dock = System.Windows.Forms.DockStyle.Top;
            this.label9.Location = new System.Drawing.Point(0, 0);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(183, 18);
            this.label9.TabIndex = 0;
            this.label9.Text = "Check handle sharing...";
            this.label9.TextAlign = System.Drawing.ContentAlignment.TopCenter;
            // 
            // extCursor_Trail
            // 
            this.extCursor_Trail.Resource = "C:\\DEV\\ExtCursor_demo\\Demo\\Cursors\\Trail.ani;Demo.Properties.Resources;Trail";
            this.extCursor_Trail.SharedHandle = true;
            // 
            // extCursor_AeroWorking
            // 
            this.extCursor_AeroWorking.Resource = "C:\\DEV\\ExtCursor_demo\\Demo\\Cursors\\aero_working.ani;Demo.Properties.Resources;aer" +
                "o_working";
            this.extCursor_AeroWorking.SharedHandle = true;
            // 
            // extCursor_Electric
            // 
            this.extCursor_Electric.Resource = "C:\\DEV\\ExtCursor_demo\\Demo\\Cursors\\Electric.ani;Demo.Properties.Resources;Electri" +
                "c";
            // 
            // Form_Main
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(639, 479);
            this.Controls.Add(this.splitContainer1);
            this.Controls.Add(this.panel_Bottom);
            this.Name = "Form_Main";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "ExtCursor Demo";
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.ResumeLayout(false);
            this.splitContainer2.Panel1.ResumeLayout(false);
            this.splitContainer2.Panel2.ResumeLayout(false);
            this.splitContainer2.ResumeLayout(false);
            this.splitContainer3.Panel1.ResumeLayout(false);
            this.splitContainer3.Panel2.ResumeLayout(false);
            this.splitContainer3.ResumeLayout(false);
            this.splitContainer4.Panel1.ResumeLayout(false);
            this.splitContainer4.Panel2.ResumeLayout(false);
            this.splitContainer4.ResumeLayout(false);
            this.splitContainer5.Panel1.ResumeLayout(false);
            this.splitContainer5.Panel2.ResumeLayout(false);
            this.splitContainer5.Panel2.PerformLayout();
            this.splitContainer5.ResumeLayout(false);
            this.panel_RuntimeLoadResource.ResumeLayout(false);
            this.panel_RuntimeLoadResource.PerformLayout();
            this.panel_RuntimeLoadFile.ResumeLayout(false);
            this.panel_Bottom.ResumeLayout(false);
            this.panel_AnotherForm.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.extCursor_Trail)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.extCursor_AeroWorking)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.extCursor_Electric)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.extCursorsLinks)).EndInit();
            this.ResumeLayout(false);

		}

		#endregion

        private System.Windows.Forms.SplitContainer splitContainer1;
        private System.Windows.Forms.SplitContainer splitContainer2;
        private System.Windows.Forms.SplitContainer splitContainer3;
        private System.Windows.Forms.SplitContainer splitContainer4;
        private System.Windows.Forms.SplitContainer splitContainer5;
        private ExtCursors.ExtCursor extCursor_Trail;
        private ExtCursors.ExtCursor extCursor_AeroWorking;
        private ExtCursors.ExtCursor extCursor_Electric;
        private ExtCursors.ExtCursorsLink extCursorsLinks;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Panel panel_RuntimeLoadFile;
        private System.Windows.Forms.Button button_LoadFileRuntime;
        private System.Windows.Forms.Label label_RuntimeFileLoad;
        private System.Windows.Forms.Panel panel_RuntimeLoadResource;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.Panel panel_Spacer;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Button button_LoadResourceRuntime;
        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.OpenFileDialog openFileDialog_Cursor;
        private System.Windows.Forms.Panel panel_Bottom;
        private System.Windows.Forms.Label label_Info;
        private System.Windows.Forms.Label label_TrailHandle;
        private System.Windows.Forms.Label label_AeroHandle;
        private System.Windows.Forms.Label label_ElectricHandle;
        private System.Windows.Forms.Panel panel_AnotherForm;
        private System.Windows.Forms.Button button_AnotherForm;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label_RuntimeResHandle;
        private System.Windows.Forms.ImageList imageList_Toolbox;
        private System.Windows.Forms.ListView listView_Toolbox;
        private System.Windows.Forms.ColumnHeader columnHeader_ToolboxItem;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Button button2;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Button button3;
        private System.Windows.Forms.Panel panel2;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label10;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United Kingdom United Kingdom
I've been involved in software design and development for more years than I care to remember. Started out in Engineering and drifted into computing as a real-time software engineer (assembler) working on industrial robotic systems.
Moved into application development (in Clipper, Delphi and, more recently, .Net) in a wide variety of industries including banking, manufacturing, betting & gaming, travel industry, sport (Formula 1), public sector and a few others.
Spent many years involved in designing and developing commercial websites, becoming a specialist in XML and XSLT. Designed and developed an XSLT IDE (Xselerator), which is now available free on SourceForge.

Comments and Discussions