⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fmsearchdrive.cs

📁 USBView的C#源码
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace USBView
{
    public partial class fmSearchDrive : Form
    {
        public fmSearchDrive()
        {
            InitializeComponent();
        }

        public string DriveLetter;

        private void fmSearchDrive_Load(object sender, EventArgs e)
        {
            DriveLetter = "";

            foreach (DriveInfo di in DriveInfo.GetDrives())
            {
                if (di.DriveType != DriveType.Network)
                {
                    comboBox1.Items.Add(di.Name.TrimEnd('\\'));
                }
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            DriveLetter = comboBox1.Text;
            this.Close();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -