首页上一页 1 下一页尾页 1 条记录 1/1页
MDI windows窗体
发表在C#图书答疑
2011-02-24
是否精华
是
否
版块置顶:
是
否
以下是我学习视频学C#关于如何建立父窗体子窗体的代码,运行后错误,请指点:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication10
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 子窗体一ToolStripMenuItem_Click(object sender, EventArgs e)
{
{
form2 frm = new Form2();
frm.MdiParent = this;
frm.Show();
}
}
private void 子窗体二ToolStripMenuItem_Click(object sender, EventArgs e)
{
form3 frm = new Form3();
frm.MdiParent = this;
frm.Show();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication10
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 子窗体一ToolStripMenuItem_Click(object sender, EventArgs e)
{
{
form2 frm = new Form2();
frm.MdiParent = this;
frm.Show();
}
}
private void 子窗体二ToolStripMenuItem_Click(object sender, EventArgs e)
{
form3 frm = new Form3();
frm.MdiParent = this;
frm.Show();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}