• 大小: 0.05M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 双击  窗体  切换  

资源简介

双击form1就会切换到form2

代码片段和文件信息

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 WindowsFormsApplication22
{
    public partial class Form1 : Form
    {
        public Form2 form2 = null;
        public static bool isclose = false;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Shown(object sender EventArgs e)
        {
            //this.Location = new Point(0 0);
            //this.Size = Screen.PrimaryScreen.WorkingArea.Size;
            //form2.TopLevel = false;
            //form2.Location = new Point(this.ClientSize.Width - form2.Width 0);
            //this.Controls.Add(form2);
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-11-20 13:02  独立的2个窗体切换\
     目录           0  2018-11-20 13:02  独立的2个窗体切换\WindowsFormsApplication22\
     文件        1598  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\Form1.Designer.cs
     文件        2184  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\Form1.cs
     文件        5817  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\Form1.resx
     文件        1753  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\Form2.Designer.cs
     文件        1794  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\Form2.cs
     文件        5817  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\Form2.resx
     文件        1178  2018-11-20 13:45  独立的2个窗体切换\WindowsFormsApplication22\Program.cs
     目录           0  2018-11-20 13:02  独立的2个窗体切换\WindowsFormsApplication22\Properties\
     文件        1392  2018-11-20 09:08  独立的2个窗体切换\WindowsFormsApplication22\Properties\AssemblyInfo.cs
     文件        2898  2018-11-20 09:08  独立的2个窗体切换\WindowsFormsApplication22\Properties\Resources.Designer.cs
     文件        5612  2018-11-20 09:08  独立的2个窗体切换\WindowsFormsApplication22\Properties\Resources.resx
     文件        1108  2018-11-20 09:08  独立的2个窗体切换\WindowsFormsApplication22\Properties\Settings.Designer.cs
     文件         249  2018-11-20 09:08  独立的2个窗体切换\WindowsFormsApplication22\Properties\Settings.settings
     文件        4013  2018-11-20 09:37  独立的2个窗体切换\WindowsFormsApplication22\WindowsFormsApplication22.csproj
     目录           0  2018-11-20 13:02  独立的2个窗体切换\WindowsFormsApplication22\bin\
     目录           0  2018-11-20 13:58  独立的2个窗体切换\WindowsFormsApplication22\bin\Debug\
     文件        9728  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\bin\Debug\WindowsFormsApplication22.exe
     文件       32256  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\bin\Debug\WindowsFormsApplication22.pdb
     文件       11600  2018-11-20 14:09  独立的2个窗体切换\WindowsFormsApplication22\bin\Debug\WindowsFormsApplication22.vshost.exe
     文件         490  2010-03-17 22:39  独立的2个窗体切换\WindowsFormsApplication22\bin\Debug\WindowsFormsApplication22.vshost.exe.manifest
     目录           0  2018-11-20 13:02  独立的2个窗体切换\WindowsFormsApplication22\obj\
     目录           0  2018-11-20 13:02  独立的2个窗体切换\WindowsFormsApplication22\obj\x86\
     目录           0  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\obj\x86\Debug\
     文件        2152  2018-11-20 09:08  独立的2个窗体切换\WindowsFormsApplication22\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6374  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         638  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\obj\x86\Debug\GenerateResource.read.1.tlog
     文件        1530  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\obj\x86\Debug\GenerateResource.write.1.tlog
     目录           0  2018-11-20 21:59  独立的2个窗体切换\WindowsFormsApplication22\obj\x86\Debug\TempPE\
     文件         180  2018-11-20 14:02  独立的2个窗体切换\WindowsFormsApplication22\obj\x86\Debug\WindowsFormsApplication22.Form1.resources
............此处省略7个文件信息

评论

共有 条评论