经过简单的准备,花了半天的工夫,基本上把设计器的雏形搞出来了。

代码如下:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace ReportGUI


{

/**//// <summary>
/// FrmReportDesigner 的摘要说明。
/// </summary>
public class FrmReportDesigner : System.Windows.Forms.Form

{
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel pnlReportFrame;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Splitter splitter4;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Splitter splitter3;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Splitter splitter2;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Splitter splitter5;

/**//// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;

public FrmReportDesigner()

{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();

//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}


/**//// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )

{
if( disposing )

{
if(components != null)

{
components.Dispose();
}
}
base.Dispose( disposing );
}


Windows 窗体设计器生成的代码#region Windows 窗体设计器生成的代码

/**//// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()

{
this.button1 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.pnlReportFrame = new System.Windows.Forms.Panel();
this.splitter5 = new System.Windows.Forms.Splitter();
this.panel5 = new System.Windows.Forms.Panel();
this.splitter4 = new System.Windows.Forms.Splitter();
this.panel4 = new System.Windows.Forms.Panel();
this.splitter3 = new System.Windows.Forms.Splitter();
this.panel3 = new System.Windows.Forms.Panel();
this.splitter2 = new System.Windows.Forms.Splitter();
this.panel2 = new System.Windows.Forms.Panel();
this.splitter1 = new System.Windows.Forms.Splitter();
this.panel6 = new System.Windows.Forms.Panel();
this.panel1.SuspendLayout();
this.pnlReportFrame.SuspendLayout();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(32, 72);
this.button1.Name = "button1";
this.button1.TabIndex = 1;
this.button1.Text = "button1";
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.AutoScroll = true;
this.panel1.AutoScrollMargin = new System.Drawing.Size(40, 40);
this.panel1.BackColor = System.Drawing.Color.Gray;
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.pnlReportFrame);
this.panel1.Location = new System.Drawing.Point(128, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(520, 552);
this.panel1.TabIndex = 2;
//
// pnlReportFrame
//
this.pnlReportFrame.BackColor = System.Drawing.Color.Gray;
this.pnlReportFrame.Controls.Add(this.splitter5);
this.pnlReportFrame.Controls.Add(this.panel5);
this.pnlReportFrame.Controls.Add(this.splitter4);
this.pnlReportFrame.Controls.Add(this.panel4);
this.pnlReportFrame.Controls.Add(this.splitter3);
this.pnlReportFrame.Controls.Add(this.panel3);
this.pnlReportFrame.Controls.Add(this.splitter2);
this.pnlReportFrame.Controls.Add(this.panel2);
this.pnlReportFrame.Controls.Add(this.splitter1);
this.pnlReportFrame.Controls.Add(this.panel6);
this.pnlReportFrame.Location = new System.Drawing.Point(41, 41);
this.pnlReportFrame.Name = "pnlReportFrame";
this.pnlReportFrame.Size = new System.Drawing.Size(712, 1000);
this.pnlReportFrame.TabIndex = 0;
//
// splitter5
//
this.splitter5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.splitter5.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter5.Location = new System.Drawing.Point(0, 560);
this.splitter5.MinSize = 0;
this.splitter5.Name = "splitter5";
this.splitter5.Size = new System.Drawing.Size(712, 10);
this.splitter5.TabIndex = 9;
this.splitter5.TabStop = false;
//
// panel5
//
this.panel5.BackColor = System.Drawing.Color.White;
this.panel5.Dock = System.Windows.Forms.DockStyle.Top;
this.panel5.Location = new System.Drawing.Point(0, 456);
this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(712, 104);
this.panel5.TabIndex = 8;
//
// splitter4
//
this.splitter4.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(192)));
this.splitter4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.splitter4.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter4.Location = new System.Drawing.Point(0, 446);
this.splitter4.MinSize = 0;
this.splitter4.Name = "splitter4";
this.splitter4.Size = new System.Drawing.Size(712, 10);
this.splitter4.TabIndex = 7;
this.splitter4.TabStop = false;
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.White;
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(0, 342);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(712, 104);
this.panel4.TabIndex = 6;
//
// splitter3
//
this.splitter3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224)));
this.splitter3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.splitter3.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter3.Location = new System.Drawing.Point(0, 332);
this.splitter3.MinSize = 0;
this.splitter3.Name = "splitter3";
this.splitter3.Size = new System.Drawing.Size(712, 10);
this.splitter3.TabIndex = 5;
this.splitter3.TabStop = false;
//
// panel3
//
this.panel3.AccessibleDescription = "sdfgsdgf";
this.panel3.BackColor = System.Drawing.Color.White;
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 228);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(712, 104);
this.panel3.TabIndex = 4;
//
// splitter2
//
this.splitter2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(224)), ((System.Byte)(224)), ((System.Byte)(224)));
this.splitter2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.splitter2.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter2.Location = new System.Drawing.Point(0, 218);
this.splitter2.MinSize = 0;
this.splitter2.Name = "splitter2";
this.splitter2.Size = new System.Drawing.Size(712, 10);
this.splitter2.TabIndex = 3;
this.splitter2.TabStop = false;
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 114);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(712, 104);
this.panel2.TabIndex = 2;
//
// splitter1
//
this.splitter1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(192)));
this.splitter1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.splitter1.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter1.Location = new System.Drawing.Point(0, 104);
this.splitter1.MinSize = 0;
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(712, 10);
this.splitter1.TabIndex = 1;
this.splitter1.TabStop = false;
//
// panel6
//
this.panel6.BackColor = System.Drawing.Color.White;
this.panel6.Dock = System.Windows.Forms.DockStyle.Top;
this.panel6.Location = new System.Drawing.Point(0, 0);
this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(712, 104);
this.panel6.TabIndex = 0;
//
// FrmReportDesigner
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(656, 557);
this.Controls.Add(this.panel1);
this.Controls.Add(this.button1);
this.Name = "FrmReportDesigner";
this.Text = "报表设计器";
this.panel1.ResumeLayout(false);
this.pnlReportFrame.ResumeLayout(false);
this.ResumeLayout(false);

}
#endregion

}
}
