QQ through enterprise - client landing module design knowledge --- 2

Maximizable property gets a value, whether the value specified window can be maximized.

fromBorderstyle    

成员名称    说明
None            无边框。
FixedSingle 固定的单行边框。
Fixed3D         固定的三维边框。
FixedDialog 固定的对话框样式的粗边框。
Sizable         可调整大小的边框。
FixedToolWindow 不可调整大小的工具窗口边框。工具窗口不会显示在任务栏中也不会                        
显示在当用户按 Alt+Tab 时出现的窗口中。尽管指定 FixedToolWindow 的窗体通常不显示在任务栏中,还是必须确保 ShowInTaskbar属性设置为  false ,因为其默认值为  true
SizableToolWindow   可调整大小的工具窗口边框。工具窗口不会显示在任务栏中也不会显示在当用户按 Alt+Tab 时出现的窗口中。
Tag      Tag tag name implies, appendage
type object, may be any type of pay him

, for example, you wish to add this property to the thickness of the button, and the button does not have, so you can btn1.Tag = 20;
When you use int hd = ( int) btn1.Tag;
it means adding an object tag, or appendages, add some property, or to distinguish objects, there is no other meaning
myCommonComLib is a class object, myCommonComLib.Tag = this.Tag; what is what the label to the object of
this is what this means, for example, one Winform window. this.Tag refers to what tag you assigned to the winform window is then assigned this value to force myCommonComLib.Tag
 

Guess you like

Origin www.cnblogs.com/bedfly/p/12123828.html