Custom Styles vb.net

Posted by: juan.ome on 12 April 2019, 1:41 am EST

    • Post Options:
    • Link

    Posted 12 April 2019, 1:41 am EST

    Hi,

    We are migrating from vb6 to vb.net, in vb6 we have custom styles and we can use them, but in vb.net we can´t found the way to do it.

    we are attaching screen shots.

    Thank in advance.

    Claudia P.

  • Posted 14 April 2019, 7:47 pm EST

    Hi Claudia,

    I could not find your screenshots with this thread.

    Kindly attach them again. You can also zip them up in a folder and share it here.

    Further, please elaborate on the control you use.

    In the mean time, refer the below mentioned blog post explaining how Visual Styles can be applied to the controls in WinForms:

    https://www.grapecity.com/en/blogs/applying-visual-styles-in-winforms

    Best Regards,

    Esha

  • Posted 15 April 2019, 1:44 am EST

    Sorry… here is the attach.

    Thanks.

    CustomStylesVB.zip

  • Posted 15 April 2019, 10:35 pm EST

    Hello,

    Thank you for the files. As can be seen from the screenshots, you use C1TrueDBGrid for WinForms.

    You can set the custom style to TrueDBGrid, using the below mentioned code:

    c1TrueDBGrid1.Splits(0).Style = c1TrueDBGrid1.Styles("Custom Style 1")
    
    

    Hope it helps.

    Regards,

    Esha

  • Posted 15 April 2019, 11:47 pm EST

    Thanks Esha,

    Is There a way to do it at design time? As mentioned, we are migrating and in VB6 we can do it at design time, then we hope to be able to do it at design time in VB.net as well, in order to have not to make big changes.

    thanks in advance,

    Claudia P

  • Posted 16 April 2019, 5:31 pm EST

    Hello Claudia,

    I understand.

    Unfortunately, custom style cannot be set for the control at design-time. This needs to be done via code. There is no way to set individual styles for a particular split, column, etc during design.

    Regards.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels