|
//////////////////////////////////////////////////////////////////////
// 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 Form2 : 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.GroupBox groupBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private AxDDFORMSLib.AxFormEditor axFormEditor1;
private AxDDFORMSLib.AxFormViewer axFormViewer1;
private AxDDFORMSLib.AxSimpleScriptEditor axSimpleScriptEditor1;
private System.ComponentModel.Container components = null;
#endregion
public Form2()
{
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(Form2));
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.axFormEditor1 = new AxDDFORMSLib.AxFormEditor();
this.axFormViewer1 = new AxDDFORMSLib.AxFormViewer();
this.axSimpleScriptEditor1 = new AxDDFORMSLib.AxSimpleScriptEditor();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.axFormEditor1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axFormViewer1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.axSimpleScriptEditor1)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Location = new System.Drawing.Point(8, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(272, 16);
this.label1.TabIndex = 0;
this.label1.Text = "DaeDoe Forms Demonstration Application, v1.00";
//
// label2
//
this.label2.Location = new System.Drawing.Point(8, 32);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(272, 16);
this.label2.TabIndex = 1;
this.label2.Text = "Copyright (c) 2002, DaeDoe-Software";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.button3);
this.groupBox1.Controls.Add(this.button2);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Location = new System.Drawing.Point(8, 56);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(272, 64);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Components";
//
// button1
//
this.button1.Location = new System.Drawing.Point(8, 24);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(80, 24);
this.button1.TabIndex = 0;
this.button1.Text = "Form Editor";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(96, 24);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(80, 24);
this.button2.TabIndex = 1;
this.button2.Text = "Form Viewer";
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(184, 24);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(80, 24);
this.button3.TabIndex = 2;
this.button3.Text = "Script Editor";
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// axFormEditor1
//
this.axFormEditor1.Enabled = true;
this.axFormEditor1.Location = new System.Drawing.Point(16, 120);
this.axFormEditor1.Name = "axFormEditor1";
this.axFormEditor1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axFormEditor1.OcxState")));
this.axFormEditor1.Size = new System.Drawing.Size(80, 56);
this.axFormEditor1.TabIndex = 3;
this.axFormEditor1.Visible = false;
//
// axFormViewer1
//
this.axFormViewer1.Enabled = true;
this.axFormViewer1.Location = new System.Drawing.Point(104, 120);
this.axFormViewer1.Name = "axFormViewer1";
this.axFormViewer1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axFormViewer1.OcxState")));
this.axFormViewer1.Size = new System.Drawing.Size(80, 56);
this.axFormViewer1.TabIndex = 4;
this.axFormViewer1.Visible = false;
//
// axSimpleScriptEditor1
//
this.axSimpleScriptEditor1.Enabled = true;
this.axSimpleScriptEditor1.Location = new System.Drawing.Point(192, 120);
this.axSimpleScriptEditor1.Name = "axSimpleScriptEditor1";
this.axSimpleScriptEditor1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axSimpleScriptEditor1.OcxState")));
this.axSimpleScriptEditor1.Size = new System.Drawing.Size(80, 56);
this.axSimpleScriptEditor1.TabIndex = 5;
this.axSimpleScriptEditor1.Visible = false;
//
// Form2
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(290, 128);
this.Controls.Add(this.axSimpleScriptEditor1);
this.Controls.Add(this.axFormViewer1);
this.Controls.Add(this.axFormEditor1);
this.Controls.Add(this.groupBox1);
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 = "Form2";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "About";
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.axFormEditor1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axFormViewer1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.axSimpleScriptEditor1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private void button1_Click(object sender, System.EventArgs e)
{
// show the form editor about box
axFormEditor1.About();
}
private void button2_Click(object sender, System.EventArgs e)
{
// show the form viewer about box
axFormViewer1.About();
}
private void button3_Click(object sender, System.EventArgs e)
{
// show the simple script editor about box
axSimpleScriptEditor1.About();
}
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.