2017-5-3 安装软件制作(爱钱软件)

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication6
{
    public partial class Form1 : Form
    {
        欢迎安装爱钱软件 F4 = null;
        public Form1(欢迎安装爱钱软件 f4)
        {
            InitializeComponent();
            F4 = f4;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2(F4);
         
            f2.MdiParent = F4;
            f2.Parent = F4.panel1;
            f2.WindowState = FormWindowState.Maximized;
            f2.Show();
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            saveFileDialog1.ShowDialog();
            textBox1.Text = saveFileDialog1.FileName;
        }
    }
}

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication6
{
    public partial class Form2 : Form
    {
        欢迎安装爱钱软件 F4 = null;
        public Form2(欢迎安装爱钱软件 f4)
        {
            InitializeComponent();
            F4 = f4;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Form3 f3 = new Form3();
            f3.MdiParent =F4;
            f3.Parent = F4.panel1;
            f3.WindowState = FormWindowState.Maximized;
            f3.Show();
            this.Close();
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {

            if (checkBox1.Checked)
            {
                button1.Enabled = true;
            }
            else
            {
                button1.Enabled = false;
            }
        }
    }
}

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication6
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
           
        }
    }
}

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication6
{
    public partial class 欢迎安装爱钱软件 : Form
    {
        public 欢迎安装爱钱软件()
        {
            InitializeComponent();
        }

        private void Form4_Activated(object sender, EventArgs e)
        {

           
            Form1 f1 = new Form1(this);
            f1.MdiParent = this;
            f1.Parent = this.panel1;
            f1.WindowState = FormWindowState.Maximized;
            f1.Show();
        }
    }
}
原文地址:https://www.cnblogs.com/zhengqian/p/6807822.html