Append "temporary" Tab to existing Ribbon

Nov 4, 2013 at 5:39 PM
Edited Nov 4, 2013 at 5:49 PM

First of all let me say this project is awesome and incredible well build. Pretty much everything i was looking for to my project.

I'm looking for a way to append a "temporary" tab to a main Ribbon when opening another form. Pretty much to replicate the behavior Word has when we click an image for example: a red/pink tab is added to the main ribbon with specific actions depending of the context we are.

I believe i will be able to do it creating a hidden tab on the main Ribbon and Hide/Show depending where i am but i can't find a way to add that "red/pink" look to it as office does neither how to select a tab by name.
MainV2.MainRibbon.Tabs(5).Visible = True
MainV2.MainRibbon.ActiveTab = MainV2.MainRibbon.Tabs(5)
Any ideas?

Nov 26, 2013 at 6:29 AM
public Form1()
    ribbonTab2.Visible = false;

private void button1_Click(object sender, EventArgs e)
    ribbonTab2.Visible = true;
    ribbon1.ActiveTab = ribbonTab2;

private void button2_Click(object sender, EventArgs e)
    ribbonTab2.Visible = false;
    ribbon1.ActiveTab = ribbonTab1;
Nov 26, 2013 at 8:53 AM
Thanks mate, works great.

Any idea on how to highlight it like Word does? Maybe in Red/Pink?

Nov 28, 2013 at 12:03 PM
Edited Nov 28, 2013 at 12:04 PM
This cannot be done as all the tabs are drawn using the same color.
You can do this by editing the source code.
but that might require a lots of work.
Nov 28, 2013 at 1:57 PM
Unfortunately that's something to advanced for my skills...

Either way thanks and keep up the good work!