• 大小: 6.17M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 原生  界面  控件  系统  

资源简介

    利用C#原生系统控件,流式布局生成系统主界面,根据窗体大小可以自动改变控件在窗体的位置

资源截图

代码片段和文件信息

using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using WindowsFormsApplication1.Properties;

namespace WindowsFormsApplication1
{
    public partial class MainForm : Form
    {
        private int buttonTag = 0;
        /// 
        /// 触发事件
        /// 

        /// 
        private void ButtonRaiseEvent(object sender EventArgs e)
        {
            var btn = sender as Button;
            MessageBox.Show($“测试按钮【{btn.Name}】单击事件:“ + btn.Text);
        }

        public MainForm()
        {
            InitializeComponent();

            Setstyle(Controlstyles.OptimizedDoubleBuffer
                     | Controlstyles.ResizeRedraw
                     | ControlSt

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-07 13:38  WindowsFormsApplication1\
     目录           0  2020-04-07 08:29  WindowsFormsApplication1\.vs\
     目录           0  2020-04-07 08:29  WindowsFormsApplication1\.vs\WindowsFormsApplication1\
     目录           0  2020-04-07 08:29  WindowsFormsApplication1\.vs\WindowsFormsApplication1\v16\
     文件       46592  2020-04-07 13:27  WindowsFormsApplication1\.vs\WindowsFormsApplication1\v16\.suo
     文件       21376  2020-04-07 13:27  WindowsFormsApplication1\MainForm.Designer.cs
     文件       13301  2020-04-07 13:27  WindowsFormsApplication1\MainForm.cs
     文件        5817  2020-04-07 13:27  WindowsFormsApplication1\MainForm.resx
     文件         602  2020-04-07 09:59  WindowsFormsApplication1\Program.cs
     目录           0  2020-04-07 13:04  WindowsFormsApplication1\Properties\
     文件        1380  2014-02-18 19:02  WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件       10721  2020-04-07 13:04  WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件       11107  2020-04-07 13:04  WindowsFormsApplication1\Properties\Resources.resx
     文件        1124  2014-07-18 13:29  WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         200  2014-07-18 13:29  WindowsFormsApplication1\Properties\Settings.settings
     目录           0  2020-04-07 13:04  WindowsFormsApplication1\Resources\
     文件        6345  2020-04-07 13:04  WindowsFormsApplication1\Resources\cert.png
     文件        5773  2020-04-07 13:04  WindowsFormsApplication1\Resources\chart_bar.png
     文件        6328  2020-04-07 13:04  WindowsFormsApplication1\Resources\chart_line.png
     文件        6734  2020-04-07 13:04  WindowsFormsApplication1\Resources\clipboard_cut.png
     文件        6206  2020-04-07 09:55  WindowsFormsApplication1\Resources\cog.png
     文件        5555  2020-04-07 09:57  WindowsFormsApplication1\Resources\comp.png
     文件        6356  2020-04-07 13:04  WindowsFormsApplication1\Resources\compass.png
     文件        5992  2020-04-07 13:04  WindowsFormsApplication1\Resources\contact_card.png
     文件        6286  2020-04-07 09:49  WindowsFormsApplication1\Resources\delete.png
     文件        6362  2020-04-07 13:04  WindowsFormsApplication1\Resources\layers_1.png
     文件        6079  2020-04-07 13:04  WindowsFormsApplication1\Resources\lighting.png
     文件        6557  2020-04-07 13:04  WindowsFormsApplication1\Resources\link.png
     文件        5823  2020-04-07 13:04  WindowsFormsApplication1\Resources\net_comp.png
     文件        5816  2020-04-07 13:04  WindowsFormsApplication1\Resources\network.png
     文件        5650  2020-04-07 09:58  WindowsFormsApplication1\Resources\notepad.png
............此处省略1542个文件信息

评论

共有 条评论