最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
终于搞定c#中对mdi的操作,代码见内(parent部分)
时间:2022-07-02 11:37:00 编辑:袖梨 来源:一聚教程网
花了我一上午的时间,找来找去找不到答案,又是急性子,只好自己动手了,见笑,也请大家多提意见,谢了。
parent.cs
------------------------------------------------------------
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace testagain
{
///
/// Summary description for parent.
///
public class parent : System.Windows.Forms.Form
{
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem m_FileMenu;
private System.Windows.Forms.MenuItem m_OpenFile;
private System.Windows.Forms.MenuItem m_Close;
private System.Windows.Forms.MdiClient mdiClient1;
private System.Windows.Forms.MenuItem menuItem1;
///
/// Required designer variable.
///
private System.ComponentModel.Container components = null;
public parent()
parent.cs
------------------------------------------------------------
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace testagain
{
///
/// Summary description for parent.
///
public class parent : System.Windows.Forms.Form
{
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem m_FileMenu;
private System.Windows.Forms.MenuItem m_OpenFile;
private System.Windows.Forms.MenuItem m_Close;
private System.Windows.Forms.MdiClient mdiClient1;
private System.Windows.Forms.MenuItem menuItem1;
///
/// Required designer variable.
///
private System.ComponentModel.Container components = null;
public parent()