窗体Р tssStatus.Text = "计算器"; //在状态栏中显示操作内容Р }Р private void tsmdate_Click(object sender, EventArgs e)Р {Р frmTime time = new frmTime(); //创建子窗体对象Р time.MdiParent = this; //指定当前窗体为MDI父窗体Р time.Show(); / /打开子窗体Р tssStatus.Text = "万年历"; //在状态栏中显示操作内容Р }Р private void tsmdel_Click(object sender, EventArgs e)Р {Р frmDeletedevice delete = new frmDeletedevice(); //创建子窗体对象Р delete.MdiParent = this; //指定当前窗体为MDI父窗体Р delete.Show(); //打开子窗体Р tssStatus.Text = "设备数据维护"; //在状态栏中显示操作内容Р }Р }Р}Р3.子窗体frmMain.csРusing System;Рusing System.Windows.Forms;Рusing System.Data.SqlClient;Рusing System.Configuration;Р……………………Рnamespace DeviceSystemР{ ……………………Р public ame()Р {Р ponent();Р string cons = ConfigurationManager.ConnectionStrings["DeviceSystem.Properties.Settings.MyDeviceConnectionString"].ConnectionString