Change Ribbon Color Table in VB

Jul 4, 2013 at 3:53 PM
How can change color to back in VB?

In C# we can change like this:
(ribbon1.Renderer as RibbonProfessionalRenderer).ColorTable = new RibbonProfesionalRendererColorTableBlack();
Jul 5, 2013 at 7:37 AM
What is your exact question? How to cast or how to instantiate an object?
Take a look at this discussion:
Though it is about reading the theme from an ini file but you should get the idea.
Jul 5, 2013 at 5:24 PM
Edited Jul 5, 2013 at 5:25 PM
This is how I do it in my VB application when I'm switching between themes.
TryCast(ribbon1.Renderer, RibbonProfessionalRenderer).ColorTable = New RibbonProfesionalRendererColorTableBlack()
Jul 5, 2013 at 6:33 PM
Works! Many thanks!

That is how change theme in C#. I needed to change theme in VB.
Jul 8, 2013 at 10:10 PM
UPDATE you no longer need to worry about doing the casting when changing color tables. give this a try after downloading the latest code.

Theme.ThemeColor = RibbonTheme.Black
Theme.ThemeColor = RibbonTheme.Black;