Click here to Skip to main content
15,891,136 members
Articles / Desktop Programming / WTL

Form Designer

26 Jul 2021CPOL24 min read 351.7K   82.5K   230  
Component for adding scriptable forms capabilities to an application.
//////////////////////////////////////////////////////////////////////
// Author : David Shepherd
// Copyright (c) 2003, DaeDoe-Software
//////////////////////////////////////////////////////////////////////

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace CSDemo
{
	public class Form6 : System.Windows.Forms.Form
	{
		#region Windows Form Designer variables
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.Label label6;
		private System.Windows.Forms.PictureBox pictureBox1;
		private System.Windows.Forms.Button cont;
		private System.ComponentModel.Container components = null;
		#endregion

		public Form6()
		{
			InitializeComponent();
		}

		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form6));
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.label6 = new System.Windows.Forms.Label();
			this.pictureBox1 = new System.Windows.Forms.PictureBox();
			this.cont = new System.Windows.Forms.Button();
			this.SuspendLayout();
			//
			// label1
			//
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(328, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "Welcome to the DaeDoe Forms Demonstration Application.";
			//
			// label2
			//
			this.label2.Location = new System.Drawing.Point(8, 32);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(336, 40);
			this.label2.TabIndex = 1;
			this.label2.Text = "Please note that in addition to the files automatically installed by the setup pr" +
				"ogram, it is recommended that the following files also be present on the system " +
				"and registered using regsvr32.";
			//
			// label3
			//
			this.label3.Location = new System.Drawing.Point(8, 80);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(328, 16);
			this.label3.TabIndex = 2;
			this.label3.Text = "Microsoft Windows Common Controls (MSCOMCTL.OCX)";
			//
			// label4
			//
			this.label4.Location = new System.Drawing.Point(8, 96);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(328, 16);
			this.label4.TabIndex = 3;
			this.label4.Text = "Microsoft Windows Common Controls 2 (MSCOMCT2.OCX)";
			//
			// label5
			//
			this.label5.Location = new System.Drawing.Point(8, 120);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(328, 40);
			this.label5.TabIndex = 4;
			this.label5.Text = "DaeDoe Forms in no way relies on the above files, however the demonstration appli" +
				"cation may try to insert controls into the form which exist in these libraries.";
			//
			// label6
			//
			this.label6.Location = new System.Drawing.Point(8, 168);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(328, 56);
			this.label6.TabIndex = 5;
			this.label6.Text = "Please also be aware that DaeDoe Forms when running in evaluation mode limits the" +
				" number of ActiveX controls which can be hosted by the form editor. When unlocke" +
				"d, the form editor can host an unlimited number of controls.";
			//
			// pictureBox1
			//
			this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
			this.pictureBox1.Location = new System.Drawing.Point(8, 232);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(184, 32);
			this.pictureBox1.TabIndex = 6;
			this.pictureBox1.TabStop = false;
			//
			// cont
			//
			this.cont.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.cont.Location = new System.Drawing.Point(264, 240);
			this.cont.Name = "cont";
			this.cont.Size = new System.Drawing.Size(64, 24);
			this.cont.TabIndex = 7;
			this.cont.Text = "Continue";
			//
			// Form6
			//
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(338, 272);
			this.Controls.Add(this.cont);
			this.Controls.Add(this.pictureBox1);
			this.Controls.Add(this.label6);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "Form6";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Welcome";
			this.ResumeLayout(false);

		}
		#endregion
	}
}

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
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions