MDI窗体

2020-12-13 05:30

阅读:353

标签:style   for   art   ar   new   size   log   text   

public partial class MySchool : Form
    {
        public MySchool()
        {
            InitializeComponent();
        }

        private void tsmiAddUser_Click(object sender, EventArgs e)
        {
            AddStudentForm addStudentForm = new AddStudentForm();//创建子窗体
            addStudentForm.MdiParent = this;//设置子窗体的MDI父窗体
            addStudentForm.Show();
        }

        private void tsmiSearchUser_Click(object sender, EventArgs e)
        {
            SearchStudentForm searchStudentForm = new SearchStudentForm();
            searchStudentForm.MdiParent = this;
            searchStudentForm.Show();
        }

        private void tsbAddUser_Click(object sender, EventArgs e)
        {
            AddStudentForm addStudentForm = new AddStudentForm();//创建子窗体
            addStudentForm.MdiParent = this;//设置子窗体的MDI父窗体
            addStudentForm.Show();
        }

        private void MySchool_Load(object sender, EventArgs e)
        {
            this.tsslStatus.Text = "当前登录的用户:"+Helper.account;
        }

        private void tsmiAbout_Click(object sender, EventArgs e)
        {
            ImageForm imageForm = new ImageForm();
            imageForm.ShowDialog();//打开模式窗体
        }
    }

MDI窗体,搜素材,soscw.com

MDI窗体

标签:style   for   art   ar   new   size   log   text   

原文地址:http://www.cnblogs.com/danmao/p/3871642.html


评论


亲,登录后才可以留言!