Click here to Skip to main content
15,896,549 members
Articles / Desktop Programming / WTL

Form Designer

26 Jul 2021CPOL24 min read 352.2K   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 Form8 : 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.Button cont;
		private System.ComponentModel.Container components = null;
		#endregion

		public Form8()
		{
			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()
		{
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			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 = "Unable to load the form.";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(8, 32);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(328, 64);
			this.label2.TabIndex = 1;
			this.label2.Text = "The most likely cause of this problem is that either one of the controls containe" +
				"d within the form is not available on the system, or the maximum number of contr" +
				"ols which can be hosted by DaeDoe Forms when running in evaluation mode has been" +
				" exceeded.";
			// 
			// cont
			// 
			this.cont.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.cont.Location = new System.Drawing.Point(8, 104);
			this.cont.Name = "cont";
			this.cont.Size = new System.Drawing.Size(312, 24);
			this.cont.TabIndex = 2;
			this.cont.Text = "Continue";
			// 
			// Form8
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(330, 136);
			this.Controls.Add(this.cont);
			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 = "Form8";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Error";
			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