DomainUpDown和NumericUpDown控件使用
2013-07-23 22:39
387 查看
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 DomainUpDown和NumericUpDown控件使用 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { this.domainUpDownFont.SelectedIndex = 0; } private void domainUpDownFont_SelectedItemChanged(object sender, EventArgs e) { DomainUpDown dud = (DomainUpDown)sender; float fontSize = this.label1.Font.Size; Font newFont = new Font(dud.Text, fontSize); this.label1.Font = newFont; } private void numericUpDown_ValueChanged(object sender, EventArgs e) { int r = (int)this.numericUpDownRed.Value; int g = (int)this.numericUpDownGreen.Value; int b = (int)this.numericUpDownBlue.Value; this.label1.ForeColor = Color.FromArgb(r, g, b); } } }
相关文章推荐
- 关于.NET中的NumericUpDown控件使用注意
- VS2017移动开发(C#、VB.NET)——Numeric控件的使用方式 4000
- 【转】VS2013 C#WinForm程序构造界面拖动控件NumericUpDown时"未响应“是有道词典惹的祸
- NumericUpDown 控件
- C#的numericUpDown控件
- vb.net 教程 3-4 窗体编程 公共控件3 Listbox & NumericUpDown
- VS 2015 拖动numericUpDown控件VS无响应(包括VS2013)
- C#:NumericUpDown控件(可调节类控件)
- VS2017移动开发(C#、VB.NET)——Numeric控件的使用方式
- C#|Winform编程控件之数字输入框控件(numericUpDown)
- NUmericupdown控件
- ASP.NET自定义控件开发--微调控件(NumericUpDown)
- VS2013 C#WinForm程序构造界面拖动控件NumericUpDown时"未响应“是有道词典惹的祸
- WPF控件NumericUpDown-自定义微调控件
- NumericUpDownExtender 控件
- WPF控件NumericUpDown (转)
- c#NumericUpDown 控件
- *Delphi控件之---UpDown以及其与TEdit的配合使用(比如限制TEdit只能输入数字,还有Object Inspector之组件属性的介绍)
- C# NumericUpDown控件
- NumericUpDown使用备注