Scroll Bars
-
I did this for the RichTextBox control and it should work for forms.
protected override CreateParams CreateParams
{
get
{
System.Windows.Forms.CreateParams param = base.CreateParams;
//we need to prevent to control calling the vscroll or hscroll
//vscroll
if ((0x00200000 & param.Style) != 0)
{
param.Style -= 0x00200000;
}
//hscroll
if ((0x00100000 & param.Style) != 0)
{
param.Style -= 0x00100000;
}
return param;
}
}Should work on all forms. Hope it helps :) WebBoxes - Yet another collapsable control, but it relies on a "graphics server" for dynamic pretty rounded corners, cool arrows and unlimited font support.
-
I did this for the RichTextBox control and it should work for forms.
protected override CreateParams CreateParams
{
get
{
System.Windows.Forms.CreateParams param = base.CreateParams;
//we need to prevent to control calling the vscroll or hscroll
//vscroll
if ((0x00200000 & param.Style) != 0)
{
param.Style -= 0x00200000;
}
//hscroll
if ((0x00100000 & param.Style) != 0)
{
param.Style -= 0x00100000;
}
return param;
}
}Should work on all forms. Hope it helps :) WebBoxes - Yet another collapsable control, but it relies on a "graphics server" for dynamic pretty rounded corners, cool arrows and unlimited font support.