Custom Ribbon on Form

MattBaldry

Self Taught, Learn from the Forums
Local time
Today, 11:49
Joined
Feb 5, 2019
Messages
338
Hi All,

I have some very nice custom ribbons and icons on my apps now, but I am now thinking of having form commands on their own custom ribbon too.

Now I can get Ribbons to load with the form, but the default ribbon stays selected. Does anyone know how to get it to switch to the form ribbon when the focus form is selected?

I am assuming something in the forms On Got Focus event.

~Matt
 
Are you using startFromScratch = true?
 
Are you using startFromScratch = true?
I am yes, but I also have that option for my main ribbon which is loaded without a form, so that always stays as the default.

I want the main ribbon to stay, but when a form is open it gets its own ribbon, which becomes selected when the form is loaded.

~Matt
 
I am yes, but I also have that option for my main ribbon which is loaded without a form, so that always stays as the default.

I want the main ribbon to stay, but when a form is open it gets its own ribbon, which becomes selected when the form is loaded.

~Matt
I see. I think there is an ActivateTab method you could try out.
 
Open your form in design view and open the property shhet. Select the "All" tab and scroll down to "Name of Ribbon". Select the custom ribbon you would like. When you now active the form this ribbon will always be displayed.
 

Users who are viewing this thread

Back
Top Bottom