2024年2月21日发(作者:)

我放了3个窗体,form1,form2,form3窗体代码如下:

using System;

using g;

using tions;

using entModel;

using ;

using ;

namespace test

{

///

/// Form1 的摘要说明。

///

public class Form1 :

{

private button1;

///

/// 必需的设计器变量。

///

private ner components = null;

public string i;

public Form1()

{

//

// Windows 窗体设计器支持所必需的

//

InitializeComponent();

//

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

//

}

///

/// 清理所有正在使用的资源。

///

protected override void Dispose( bool disposing )

{

if( disposing )

{

if (components != null)

{

e();

}

}

e( disposing );

}

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

///

/// 设计器支持所需的方法 - 不要使用代码编辑器修改

/// 此方法的内容。

///

private void InitializeComponent()

{

1 = new ();

dLayout();

//

// button1

//

on = new (40, 40);

= "button1 ";

ex = 0;

= "button1 ";

+= new andler(1_Click);

//

// Form1

//

aleBaseSize = new (6, 14);

Size = new (292, 273);

(1);

= "Form1 ";

= "Form1 ";

Layout(false);

}

#endregion

///

/// 应用程序的主入口点。

///

[STAThread]

static void Main()

{

(new Form1());

}

private void button1_Click(object sender, rgs e)

{

Form2 frm = new Form2();

();

}

}

}

using System;

using g;

using tions;

using entModel;

using ;

namespace test

{

///

/// Form2 的摘要说明。

///

public class Form2 :

{

private timer1;

private iner components;

Form3 frm;

int i=0;

t;

public Form2()

{

//

// Windows 窗体设计器支持所必需的

//

InitializeComponent();

//

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

//

}

///

/// 清理所有正在使用的资源。

///

protected override void Dispose( bool disposing )

{

if( disposing )

{

if(components != null)

{

e();

}

}

e( disposing );

}

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

///

/// 设计器支持所需的方法 - 不要使用代码编辑器修改

/// 此方法的内容。

///

private void InitializeComponent()

{

ents = new ner();

1 = new (ents);

//

// timer1

//

d = true;

al = 10;

+= new andler(1_Tick);

//

// Form2

//

aleBaseSize = new (6, 14);

Size = new (712, 365);

= "Form2 ";

= "Form2 ";

+= new andler(2_Load);

}

#endregion

private void Form2_Load(object sender, rgs e)

{

frm = new Form3();

t = new (new Start(fo));

();

}

private void timer1_Tick(object sender, rgs e)

{

i++;

if(i <1000)

= ng();

else

();

}

}

}

using System;

using g;

using tions;

using entModel;

using ;

namespace test

{

///

/// Form3 的摘要说明。

///

public class Form3 :

{

public label1;

///

/// 必需的设计器变量。

///

private ner components = null;

public Form3()

{

//

// Windows 窗体设计器支持所必需的

//

InitializeComponent();

//

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

//

}

///

/// 清理所有正在使用的资源。

///

protected override void Dispose( bool disposing )

{

if( disposing )

{

if(components != null)

{

e();

}

}

e( disposing );

}

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

///

/// 设计器支持所需的方法 - 不要使用代码编辑器修改

/// 此方法的内容。

///

private void InitializeComponent()

{

1 = new ();

dLayout();

//

// label1

//

on = new (44, 36);

= "label1 ";

ex = 0;

= "label1 ";

//

// Form3

//

aleBaseSize = new (6, 14);

Size = new (292, 273);

(1);

= "Form3 ";

= "Form3 ";

t = true;

+= new andler(3_Load);

Layout(false);

}

#endregion

private void Form3_Load(object sender, rgs e)

{

}

public void showInfo()

{

alog();

}

}

}