• 大小: 0.48M
    文件类型: .zip
    金币: 2
    下载: 2 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 菜单栏  C#  菜单  

资源简介

WinForm 实现左侧菜单栏功能

资源截图

代码片段和文件信息

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 左菜单栏的winfrom
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            ImageList image = new ImageList();
            image.ImageSize = new Size(1 35);//设置每次点击view时以图片的形式
            ColumnHeader ch = new ColumnHeader();
            ch.Text = “菜单“;
            ch.Width = splitContainer1.Panel1.Width;
            ch.TextAlign = HorizontalAlignment.Center;
            listView1.Columns.Add(ch);//设

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-12 11:34  .vs\
     目录           0  2018-08-12 11:34  .vs\左菜单栏的winfrom\
     目录           0  2018-08-12 11:34  .vs\左菜单栏的winfrom\v15\
     文件       35328  2018-08-12 21:48  .vs\左菜单栏的winfrom\v15\.suo
     目录           0  2018-08-12 11:34  .vs\左菜单栏的winfrom\v15\Server\
     目录           0  2018-08-12 11:34  .vs\左菜单栏的winfrom\v15\Server\sqlite3\
     文件           0  2018-08-12 11:34  .vs\左菜单栏的winfrom\v15\Server\sqlite3\db.lock
     文件      593920  2018-08-12 12:17  .vs\左菜单栏的winfrom\v15\Server\sqlite3\storage.ide
     文件       32768  2018-08-12 11:34  .vs\左菜单栏的winfrom\v15\Server\sqlite3\storage.ide-shm
     文件     4132392  2018-08-12 21:48  .vs\左菜单栏的winfrom\v15\Server\sqlite3\storage.ide-wal
     文件        1165  2018-08-12 11:34  左菜单栏的winfrom.sln
     目录           0  2018-08-12 12:39  左菜单栏的winfrom\
     文件         187  2018-08-12 11:34  左菜单栏的winfrom\App.config
     目录           0  2018-08-12 12:23  左菜单栏的winfrom\bin\
     目录           0  2018-08-12 12:28  左菜单栏的winfrom\bin\Debug\
     文件       15360  2018-08-12 12:42  左菜单栏的winfrom\bin\Debug\左菜单栏的winfrom.exe
     文件         187  2018-08-12 11:34  左菜单栏的winfrom\bin\Debug\左菜单栏的winfrom.exe.config
     文件       42496  2018-08-12 12:42  左菜单栏的winfrom\bin\Debug\左菜单栏的winfrom.pdb
     目录           0  2018-08-12 12:23  左菜单栏的winfrom\bin\Release\
     文件        6252  2018-08-12 12:39  左菜单栏的winfrom\Form1.cs
     文件        3495  2018-08-12 12:15  左菜单栏的winfrom\Form1.Designer.cs
     文件        5817  2018-08-12 12:15  左菜单栏的winfrom\Form1.resx
     目录           0  2018-08-12 11:34  左菜单栏的winfrom\obj\
     目录           0  2018-08-12 12:28  左菜单栏的winfrom\obj\Debug\
     文件         827  2018-08-12 11:34  左菜单栏的winfrom\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7204  2018-08-12 12:28  左菜单栏的winfrom\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件           0  2018-08-12 11:34  左菜单栏的winfrom\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2018-08-12 11:34  左菜单栏的winfrom\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2018-08-12 11:34  左菜单栏的winfrom\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
     目录           0  2018-08-12 11:34  左菜单栏的winfrom\obj\Debug\TempPE\
     文件          42  2018-08-12 12:28  左菜单栏的winfrom\obj\Debug\左菜单栏的winfrom.csproj.CoreCompileInputs.cache
............此处省略35个文件信息

评论

共有 条评论