Creates a form.
Namespace:
SGP.XUtilityAssembly: SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718
Syntax
C# |
---|
public static Form CreateForm( int width, int height, string text, Color backColor, Color foreColor, FormBorderStyle formBorderStyle, FormWindowState formWindowState ) |
Parameters
- width
- Type: System..::.Int32
Control width.
- height
- Type: System..::.Int32
Control height.
- text
- Type: System..::.String
A control text.
- backColor
- Type: System.Drawing..::.Color
A background color.
- foreColor
- Type: System.Drawing..::.Color
A foreground color.
- formBorderStyle
- Type: System.Windows.Forms..::.FormBorderStyle
A form border style.
- formWindowState
- Type: System.Windows.Forms..::.FormWindowState
A form window state.
Return Value
Returns a created control.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | text is nullNothingnullptra null reference (Nothing in Visual Basic). |