Applying window styles to controls at runtime

Hi, i'm using vb2005 express. i am developing an application that designs forms for win32, and i need a way to apply window (WS_SYSMENU...), extended window (WS_EX_LEFTSCROLLBAR....), and class styles (BS_MULTILINE, SS_STATIC...) to controls at runtime. I know that in a user-defined class, the CreateParams property can be overidden and styles applied at that point, but how do i do this for standard Windows Forms controls, and at runtime

Answer this question

Applying window styles to controls at runtime

  • Guillermo Díaz

    Use the Control.UpdateStyles method

  • Applying window styles to controls at runtime