zoukankan      html  css  js  c++  java
  • Chapter 5. MDI窗体、菜单栏

    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 MDI窗体
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void 子窗体1ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                子窗体1 f2 = new 子窗体1();
                f2.MdiParent = this;
                f2.Show();
            }
    
            private void 子窗体2ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                子窗体2 f3 = new 子窗体2();
                f3.MdiParent = this;
                f3.Show();
            }
    
            private void 子窗体3ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                子窗体3 f4 = new 子窗体3();
                f4.MdiParent = this;
                f4.Show();
            }
    
            private void 横向ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                LayoutMdi(MdiLayout.TileHorizontal);
            }
    
            private void 纵向ToolStripMenuItem_Click(object sender, EventArgs e)
            {
                LayoutMdi(MdiLayout.TileVertical);
            }
        }
    }               

  • 相关阅读:
    C# 字符串转为DateTime类型
    多线程的注意事项
    linux 安装中文支持
    发布网站遇到的坑
    配置iis支持json解析,配置ssi
    SEO之图片优化
    SEO之面包屑导航
    SEO之HTML标签
    SEO之优化代码
    SEO之网站内部结构优化
  • 原文地址:https://www.cnblogs.com/xiao55/p/5636598.html
Copyright © 2011-2022 走看看