• 大小: 0.14M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

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;
using System.Management;

namespace Getrefurbish
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        string NowValue;//当前刷新率
        private void button1_Click(object sender EventArgs e)
        {
            ManagementobjectSearcher searcher = new ManagementobjectSearcher(“select * from Win32_VideoController“);
            foreach(Managementobject myobject in searcher.Get() )
            {
                NowValue = myobject[“CurrentRefreshRate“].ToString();
            }
            MessageBox.Show(“当前刷新率:“+NowValue);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         926  2009-02-10 09:44  sj\01\Getrefurbish\Getrefurbish.sln
     文件       15360  2009-02-10 09:50  sj\01\Getrefurbish\Getrefurbish.suo
     文件         862  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\Form1.cs
     文件        2040  2009-02-10 09:48  sj\01\Getrefurbish\Getrefurbish\Form1.Designer.cs
     文件        5814  2009-02-10 09:48  sj\01\Getrefurbish\Getrefurbish\Form1.resx
     文件        3817  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\Getrefurbish.csproj
     文件         493  2009-02-10 09:44  sj\01\Getrefurbish\Getrefurbish\Program.cs
     文件        8704  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\bin\Debug\Getrefurbish.exe
     文件       24064  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\bin\Debug\Getrefurbish.pdb
     文件       14328  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\bin\Debug\Getrefurbish.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\Getrefurbish\Getrefurbish\bin\Debug\Getrefurbish.vshost.exe.manifest
     文件         663  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\obj\Debug\Getrefurbish.csproj.FileListAbsolute.txt
     文件         847  2009-02-10 09:48  sj\01\Getrefurbish\Getrefurbish\obj\Debug\Getrefurbish.csproj.GenerateResource.Cache
     文件        8704  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\obj\Debug\Getrefurbish.exe
     文件         180  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\obj\Debug\Getrefurbish.Form1.resources
     文件       24064  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\obj\Debug\Getrefurbish.pdb
     文件         180  2009-02-10 09:49  sj\01\Getrefurbish\Getrefurbish\obj\Debug\Getrefurbish.Properties.Resources.resources
     文件        1356  2009-02-10 09:44  sj\01\Getrefurbish\Getrefurbish\Properties\AssemblyInfo.cs
     文件        2874  2009-02-10 09:44  sj\01\Getrefurbish\Getrefurbish\Properties\Resources.Designer.cs
     文件        5612  2009-02-10 09:44  sj\01\Getrefurbish\Getrefurbish\Properties\Resources.resx
     文件        1097  2009-02-10 09:44  sj\01\Getrefurbish\Getrefurbish\Properties\Settings.Designer.cs
     文件         249  2009-02-10 09:44  sj\01\Getrefurbish\Getrefurbish\Properties\Settings.settings
     文件         935  2009-02-10 09:50  sj\02\GetdisplayColor\GetdisplayColor.sln
     文件       15360  2009-02-10 10:03  sj\02\GetdisplayColor\GetdisplayColor.suo
     文件        1147  2009-02-10 09:53  sj\02\GetdisplayColor\GetdisplayColor\Form1.cs
     文件        2115  2009-02-10 09:53  sj\02\GetdisplayColor\GetdisplayColor\Form1.Designer.cs
     文件        5814  2009-02-10 09:53  sj\02\GetdisplayColor\GetdisplayColor\Form1.resx
     文件        3823  2009-02-10 09:51  sj\02\GetdisplayColor\GetdisplayColor\GetdisplayColor.csproj
     文件         496  2009-02-10 09:50  sj\02\GetdisplayColor\GetdisplayColor\Program.cs
     文件        8704  2009-02-10 09:53  sj\02\GetdisplayColor\GetdisplayColor\bin\Debug\GetdisplayColor.exe
     文件       24064  2009-02-10 09:53  sj\02\GetdisplayColor\GetdisplayColor\bin\Debug\GetdisplayColor.pdb
............此处省略37个文件信息

评论

共有 条评论