C#控件系类

<p align="left">组件. errorProvider</p>

<p align="left">2、錯誤提示</p>

 

<p align="left">epProvider.SetError(txtGUID, "GUID數量只能為整數,請輸入大於零的整數!");

 //焦點定位到錯誤處

txtGUID.Focus();

//選擇輸入的錯誤

 txtGUID.SelectAll();

<p align="left">同時我們也可以對ErrorProvider進行相關的設定。</p>

<p align="left"><!--more--></p>

 

<p align="left"> #region 定義ErrorProvider的相關屬性

//BlinkStyle:取得或設定錯誤圖示閃爍的速率。

epProvider.BlinkStyle = ErrorBlinkStyle.BlinkIfDifferentError;

//BlinkRate:取得或設定數值,表示錯誤圖示何時閃爍。

epProvider.BlinkRate =50;

#endregion

<p align="left"><a href="http://www.cnblogs.com/flyingfish/archive/2008/05/28/1209291.html">参见</a></p>

<p align="left"><a href="http://www.cnblogs.com/flyingfish/archive/2008/05/28/1209291.html"></a></p>

<p align="left"> Tooltip</p>

<p align="left">this.toolTip1.SetToolTip(this.textBox1,"清输入学生姓名。");</p>

<p align="left">  this.toolTip1.SetToolTip(this.textBox2,"请输入学生年龄。");</p>

<p align="left"> this.toolTip1.SetToolTip(this.textBox3,"请输入身份证号码。");</p>

<p align="left"> this.toolTip1.SetToolTip(this.textBox4,"请输入联系地址。");</p>

<p align="left">this.toolTip1.SetToolTip(this.label3,"居民身份证号码信息输入提示。");</p>

<p align="left"> this.toolTip1.SetToolTip(this.label4,"联系地址信息输入提示。");                  </p>

<p align="left"><a href="http://tech.ddvip.com/2008-11/122593413889440.html">参考</a></p>

<p align="left"> Menustrip</p>

<p align="left">静态的可以直接添加其中可以设置选中图片 快捷键</p>

<p align="left"><a href="http://q.sohu.com/forum/5/topic/2606915">参见</a></p>

<p align="left"> OpenFileDialog </p>

 

<a href="http://blog.csdn.net/yunhaiC/archive/2009/03/11/3980947.aspx">参见</a>

 

SaveFileDialog

 

<a href="http://www.zxbc.cn/html/20080317/32501.html">参见</a>

 

ImageList

 

ImageList组件就是一个图像列表。一般情况下,这个属性用于存储一个图像集合,这些图像用作工具栏图标或TreeView控件上的图标。许多控件都包含ImageList属性。这个属性一般和ImageIndex属性一起使用。ImageList属性设置为ImageList组件的一个实例,ImageIndex属性设置为ImageList中应在控件中显示的图像的索引。使用ImageIndex.Images属性的Add方法可以把图像添加到ImageList组件中。Images属性返回一个ImageCollection。

 

两个最常用的属性是ImageSize和ColorDepth。ImageSize使用Size结构作为其值。其默认值是16×16,但可以取1~256之间的任意值。ColorDepth使用ColorDepth枚举作为其值。颜色深度值可以从4位~32位。在.NET Framework 1.1中,默认是ColorDepth.Depth8Bit。

 

ContextMenuStrip

 

鼠标右键点击出来的菜单

 

<a href="http://www.zxbc.cn/html/20080621/57630.html">参考</a>

 

Toolstrip

 

工具栏的项目

 

<a href="http://book.51cto.com/art/200901/105509.htm">参考</a>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值