注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

信息 灵感 创新

I? =Information,Inspiration,Innovation

 
 
 

日志

 
 
关于我

we are 5. Mathematics, Computation, Programming, Engineering, and Making fun of life.

网易考拉推荐

C# Windows编程入门(十二)  

2010-12-22 20:27:25|  分类: C# & .NET |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

第四章 Status bars

       状态栏,由于前面菜单栏的情况,我估计这一章上的内容只能适用于03,不过不妨碍我的学习,同样也能从其中学点东西,开头我就说过,至少英语……嘿嘿。

4.1 Control类的简介

       Control类是Window Form程序中所有控件的基类,状态栏控件当然也是由该类派生出来。其继承的结构如下:

C Windows编程入门(十二) - Castor - 趁年轻,多折腾~~

 

下面是Control类的常见属性,方法和事件

属性

属性

说明

AllowDrop

AllowDrop Gets or sets whether to allow drag and drop operations in this control. Drag and drop operations are discussed in chapter 18.

Anchor

Gets or sets the anchor setting for the control. The Dock property gets or sets the dock setting for the control.

BackColor

Gets or sets the background color of the control.

ContextMenu

Gets or sets the context menu for the control.

Controls

Gets or sets the collection of controls contained by this control.

ClientRectangle

Gets the client area of the control. The DisplayRectangle property gets the display area.

Cursor

Gets or sets the Cursor to display when the mouse is over the control.

Enabled

Gets or sets whether the control is enabled

Location

Gets or sets the location of the control. The edges are available via the Top, Bottom, Left, and Right properties

Parent

Gets or sets the parent of this control

TabIndex

Gets or sets the tab index of the control

TabStop

Gets or sets whether the user can use the Tab key to give the focus to the control

Text

Gets or sets the text associated with this control

Visible

Gets or sets whether control is visible. This also affects any controls contained by this control

方法

方法

说明

BringToFront

Brings the control to the front of the z-order. A similar SendToBack method also exists

GetNextControl

Returns the next or previous control in the tab order

Invalidate

Invalidates all or part of the control and forces a paint message to be sent to it

PointToClient

Converts a screen location to client coordinates

事件

事件

说明

Click

Occurs when the control is clicked.

KeyPress

Occurs when a key is pressed while the control has focus

MouseUp

Occurs when a mouse button is released within the control

Paint

Occurs when all or part of the control should be repainted

由于StatusBar继承了Control类,所以以上的所有属性、方法和事件都能使用,后面将会详细说明StatusBar特有的一些属性方法。

  评论这张
 
阅读(592)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016