• 大小: 0.05M
    文件类型: .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;

namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        private bool largeText smallText;
        private string fontName = “Arial“;
        public Form1()
        {
            InitializeComponent();
        }

        private void label4_Click(object sender EventArgs e)
        {

        }

        private void Form1_Scroll(object sender ScrollEventArgs e)
        {

        }

        private void label5_Click(object sender EventArgs e)
        {

        }

        private void comboBox1_SelectedIndexChanged(object sender EventArgs e)
        {
            string cn = comboBox1.SelectedItem.ToString();
            pictureBox1.BackColor = Color.FromName(cn);
        }

        private void hScrollBar1_Scroll(object sender

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        1330  2018-11-01 18:39  WindowsFormsApplication2\WindowsFormsApplication2.sln
     文件       21504  2018-11-08 19:40  WindowsFormsApplication2\WindowsFormsApplication2.suo
     目录           0  2019-03-09 10:04  WindowsFormsApplication2\WindowsFormsApplication2\
     目录           0  2019-03-09 10:04  WindowsFormsApplication2\WindowsFormsApplication2\bin\
     目录           0  2019-03-09 10:04  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\
     文件       14336  2018-11-08 19:17  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe
     文件       28160  2018-11-08 19:17  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb
     文件       11600  2018-11-08 19:17  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe
     文件         490  2010-03-17 22:39  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.manifest
     文件        2615  2018-11-01 21:49  WindowsFormsApplication2\WindowsFormsApplication2\Form1.cs
     文件       13893  2018-11-01 19:27  WindowsFormsApplication2\WindowsFormsApplication2\Form1.Designer.cs
     文件        5817  2018-11-01 19:27  WindowsFormsApplication2\WindowsFormsApplication2\Form1.resx
     目录           0  2019-03-09 10:04  WindowsFormsApplication2\WindowsFormsApplication2\obj\
     目录           0  2019-03-09 10:04  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\
     目录           0  2019-03-09 10:04  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\
     文件        4440  2018-11-01 18:34  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6286  2018-11-08 19:17  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         336  2018-11-01 19:27  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\GenerateResource.read.1.tlog
     文件         838  2018-11-01 19:27  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\GenerateResource.write.1.tlog
     文件        7897  2018-11-01 18:35  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\ResolveAssemblyReference.cache
     目录           0  2018-10-30 17:00  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\TempPE\
     文件         997  2018-11-08 19:40  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.csproj.FileListAbsolute.txt
     文件       14336  2018-11-08 19:17  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.exe
     文件         180  2018-11-01 19:27  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.Form1.resources
     文件       28160  2018-11-08 19:17  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.pdb
     文件         180  2018-10-30 17:21  WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.Properties.Resources.resources
     文件         505  2018-10-30 17:00  WindowsFormsApplication2\WindowsFormsApplication2\Program.cs
     目录           0  2019-03-09 10:04  WindowsFormsApplication2\WindowsFormsApplication2\Properties\
     文件        1404  2018-10-30 17:00  WindowsFormsApplication2\WindowsFormsApplication2\Properties\AssemblyInfo.cs
     文件        2896  2018-10-30 17:00  WindowsFormsApplication2\WindowsFormsApplication2\Properties\Resources.Designer.cs
     文件        5612  2018-10-30 17:00  WindowsFormsApplication2\WindowsFormsApplication2\Properties\Resources.resx
............此处省略3个文件信息

评论

共有 条评论