Control.createParams method
protected void createParams(inout CreateParams cp)
By overriding this method, allows control creation parameters to be modified for when the handle is created.
Be sure to call super.createParams
or all the fields will need to be populated.
For example,
class MyForm: Form
{
protected override void createParams(inout CreateParams cp)
{
super.createParams(cp);
cp.exStyle |= WS_EX_TOOLWINDOW;
}
}
See also: CreateParams