Saturday, July 23, 2011

Windows Form Properties

Below are the properties of a Windows Form. Properties displayed below are categorized as seen in the properties window.
Appearance PropertiesDescription
BackColorGets/Sets the background color for the form
BackgroundImageGet/Sets the background image in the form
CursorGets/Sets the cursor to be displayed when the user moves the mouse over the form
FontGets/Sets the font for the form
ForeColorGets/Sets the foreground color of the form
FormBorderStyleGets/Sets the border style of the form
RightToLeftGets/Sets the value indicating if the alignment of the control's elements is reversed to support right-to-left fonts
TextGets/Sets the text associated with this form
Behavior PropertiesDescription
AllowDropIndicates if the form can accept data that the user drags and drops into it
ContextMenuGets/Sets the shortcut menu for the form
EnabledGets/Sets a value indicating if the form is enabled
ImeModeGets/Sets the state of an Input Method Editor
Data PropertiesDescription
DataBindingsGets the data bindings for a control
TagGets/Sets an object that contains data about a control
Design PropertiesDescription
NameGets/Sets name for the form
DrawGridIndicates whether or not to draw the positioning grid
GridSizeDetermines the size of the positioning grid
LockedGets/Sets whether the form is locked
SnapToGridIndicates if the controls should snap to the positioning grid
Layout PropertiesDescription
AutoScaleIndicates if the form adjusts its size to fit the height of the font used on the form and scales its controls
AutoScrollIndicates if the form implements autoscrolling
AutoScrollMarginThe margin around controls during auto scroll
AutoScrollMinSizeThe minimum logical size for the auto scroll region
DockPaddingDetermines the size of the border for docked controls
LocationGets/Sets the co-ordinates of the upper-left corner of the form
MaximumSizeThe maximum size the form can be resized to
MinimumSizeThe minimum size the form can be resized to
SizeGets/Sets size of the form in pixels
StartPositionGets/Sets the starting position of the form at run time
WindowStateGets/Sets the form's window state
Misc PropertiesDescription
AcceptButtonGets/Sets the button on the form that is pressed when the user uses the enter key
CancelButtonIndicates the button control that is pressed when the user presses the ESC key
KeyPreviewDetermines whether keyboard controls on the form are registered with the form
LanguageIndicates the current localizable language
LocalizableDetermines if localizable code will be generated for this object
Window Style PropertiesDescription
ControlBoxGets/Sets a value indicating if a control box is displayed
HelpButtonDetermines whether a form has a help button on the caption bar
IconGets/Sets the icon for the form
IsMdiContainerGets/Sets a value indicating if the form is a container for MDI child forms
MaximizeBoxGets/Sets a value indicating if the maximize button is displayed in the caption bar of the form
MenuGets/Sets the MainMenu that is displayed in the form
MinimizeBoxGets/Sets a value indicating if the minimize button is displayed in the caption bar of the form
OpacityDetermines how opaque or transparent the form is
ShowInTaskbarGets/Sets a value indicating if the form is displayed in the Windows taskbar
SizeGripStyleDetermines when the size grip will be displayed for the form
TopMostGets/Sets a value indicating if the form should be displayed as the topmost form of the application
TransparencyKeyA color which will appear transparent when painted on the form

No comments:

Post a Comment