Click here to Skip to main content
15,887,683 members
Everything / Ribbon

Ribbon

Ribbon

Great Reads

by peterboulton
Add new Ribbon themes to MFC application built using VS Feature Pack' classes
by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
by Thakkar Amit
How to enable or disable the ribbon control using JavaScript.

Latest Articles

by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
by tajbender, KoglTH, JoseMenendez, toATwork, adriancs, kevin carbis, Michael Spradlin
Easily add a ribbon to a WinForms application
by peterboulton
Add new Ribbon themes to MFC application built using VS Feature Pack' classes

All Articles

Sort by Updated

Ribbon 

27 Dec 2021 by #realJSOP
Try it this way: int remainingItemsCount = qatItems.Where(x=>x.Owner == null).Count();
25 Mar 2013 by Abhinav S
This documentation[^] might help you.
17 Feb 2015 by Abhinav S
No DataContext should not be set in the code-behind.Set the datagrid's source to a collection.
7 Mar 2013 by Ademaker
Hello, I'm beginner here and would like your help.The number select in dropdown don't appear in RibbonComboBox. Where I'm making mistakes?
14 Nov 2013 by Albert Holguin
Sure it's possible, you'll likely end up knowing a lot more about both your application and the MFC framework then you'll ever want to know though. All of the objects you see in an MFC application are added by wizards onto the SDI/MDI application (wherever they're appropriate), which means, you...
21 Sep 2012 by Alfred Loeffler
With following code I add available serial port names to the RibbonGallery object:xaml:
23 Sep 2012 by Alfred Loeffler
Sorry this, isn't a solution. Don't know a way to add more code after the previous answers.Now I tried following, but unfortunatelly with the the same result.Code in SerialPortAdapter:public static ObservableCollection GetAvailablePortList(){ var portList =...
24 Sep 2012 by Alfred Loeffler
Found out this way, which is working.xaml: ...
20 Jan 2012 by BarryPearlman
Objective: Add a bitmap to a button already in a Panel within a Catagory contained in a MFCRibbonBar.I am doing the following:1. Open the ribbon bar editor from the Resource View.2. Right click the button and then select "Properties".3. On the "Properties" drop-down, click the...
20 Feb 2012 by BarryPearlman
Using the standard Ribbon Bar that VS 10 generates, how do you change the title programmatically (sorry about the spelling :-)). All I get is "Untitled - MyApp Name". I can't find what is generating the string so that I can change it.Thanks,Barry
25 Apr 2013 by be_5demtak
Hello, I am using the free windows forms ribbon control Version 3.5.6.1 page here in a vb.net application.The form which i placed the ribbon control in is inherited from System.Windows.Forms.RibbonForm* Form Properties are set as follows:Me.FormBorderStyle =...
29 Mar 2013 by BenediktUA
hi - i had same and solved it :signature idl file:HRESULT OnLoad([in] IDispatch* pRibbon);STDMETHODIMP CConnect::OnLoad(IDispatch* pRibbon) { pRibbon->QueryInterface(__uuidof(Office::IRibbonUI), (void**)&m_pRibbonUI); return S_OK; ...
14 Dec 2012 by Christian Graus
There is no ribbon control in WPF, you need third party libraries or to create your own. Once you have that, I bet you create it the same as any other control, you construct it and insert it in to the control collection
31 Aug 2012 by Clifford Nelson
As long as the DataContext for the page is the same, you do not have to worry about it. What I might do is have the specific datacontext (ViewModel) for page be a property on Frame, and all inherit from an interface that will let the buttons ICommand methods access the specific methods for the...
12 Jul 2012 by Code-o-mat
How about updating the image itself? So when the color changes you update parts of the image with the new color as needed and then make the button redraw itself.
17 Feb 2015 by Cornelius Henning
I am relatively new with MVVM and there does not seem to be total consensus on whether some code is allowed in the .xaml.cs code behind file, or none at all. I will appreciate guidance with a specific problem:I have a Ribbon application in the MVVM pattern. The ribbon has 6 tabs, each with...
4 Mar 2017 by Dana Bell
I'm trying to access the variables in a child form. I am transitioning from a multi-form WinForm program to a MDI with a ribbon. A lot of the code in the child forms is the same and I would like to code as much is the parent form. I can access and modify controls in the child, but can't figure...
4 Mar 2017 by Dana Bell
While I did not find a way to access variables in a child form directly, I did figure out a way to execute code in the child form from the ribbon. 1. Create a label on the child form2. Make it public (or protected)3. Add a TextChanged event for the label4. Find and change the...
16 May 2019 by Daniel Leykauf
This is an old question but I want to share also my solution in case others are still looking for an alternate solution without need of any xaml. It inherits the RibbonTab and allows to set an image/company logo on the right side of the tab. Furthermore it checks on size changes if the image...
12 May 2015 by Danzy83
Hi everyone, I would like to dynamically enable/disable ribbon buttons in windows ribbon with the Windows Ribbon Framework in C#.For example, when I open file explorer in Windows (8), the Copy, Paste, and other buttons are disabled but when one or more files are selected, the Copy button,...
18 Sep 2012 by DavidCarr
I have had significant struggles with the ribbon bar in VS2010, when new buttons are added after the program had been compiled and run (at which point values are stored in the registry under the 'Workspace' key).New accelerators, for example, didn't work. Using a stock SDI application, it...
17 Jun 2019 by dirtyshooter
I am trying to select Home tab programmatically. What I have tried: private IRibbonUI ribbon; Ribbon ribbon = new Ribbon(); ribbon.ribbon.ActivateTabMso("TabHome");
1 Jan 2012 by Duc Huy Nguyen
Hi everybody,I am a newbie in DevExpress controls. And I started a VS C# 2005 project that need DevExpress ribbon controls.Please view the image:Image hereI can make a control like "Exit" by using a BarButton, but I can not make a control that is like "New" or "Save" or "Paste",...
31 Aug 2012 by easy_E
Hey everyone!I have a question regarding ribbon control and a wpf application that utilizes pages.My initial design of this application was to utilizes pages within a frame to control content. I was hoping to use a ribbon to handle button functionality but am not sure how to bind...
9 Feb 2013 by Efe Erdoğru
Hi all,I've just started to play with Microsoft WPF Ribbon libraray (October 2010, 3.5.41019.1) which downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=11877[^]After install, it puts itself into VS 2012 toolbox. Then I create the app.The source of XAML...
11 Apr 2013 by Ergadita
hi, good afternoon.I need to know if is there a ribbon office for vb6 like the ribbon of Jose Menendez Poo for vb.net? I have found it for vb6 but with bugs. Jose Menendez did a good job for vb.net.Thanks & Best RegardsHola buenas tardes,Necesitaria saber la ribbon office para...
20 Jan 2012 by ErnestoNet
In the ribbon editor, click on a category tab. In its properties there are two values:Large Images (32*32)Small Images (16*16).The one that usually counts is large images.You must have a resource with a bitmap of height = 32 and width = 32 * numimages where the images are stored...
17 Jan 2012 by Francis Pradeep Kumar
Using the below this.Resources.MergedDictionaries.Add(PopularApplicationSkins.Office2007Black);throws below error The type or namespace name 'PopularApplicationSkins' does not exist in the namespace 'Microsoft.Windows.Controls.Ribbon'
12 Apr 2012 by geice
I have looked in many places, but found no need WHATThe thing is, I have a TabControl TabControl and within thisobviously have TabPages TabPages and within these forms have, there isgetting my problem (noob), when I open a tab at a timeworks fine, but when I leave an open and open the...
11 Jan 2020 by Gerry Schmitz
Your first example had a button "in the template"; the second does not. You're not comparing the same things.
9 Aug 2020 by Gerry Schmitz
If I know I will only have one instance of a given user control, I will add a public static property (called "Current") in which I store a reference to the control itself at create time. In that way, you can use the public static property to get...
27 Aug 2012 by glararan
Hello,yester...
20 Feb 2017 by Graeme_Grant
Google Search is your friend... A quick search highlights many possible results that could help you. Have you tried doing any research?
13 Jan 2014 by hulzi
hey,i have an automation AddIn based on Interops10 with an simple CommandBarButton.Everything works fine (Office 2003 - Office 2013, x64, x32, de, en, ...)But when i active an other AddIn (like "Solver"), the CommandBarButton Click doesn't fire up.This is only in office 2013!OPEN...
14 Jan 2014 by hulzi
juhuuuu:You have to set the Tag objectCommandBarButton myButton;myButton.Tag = "TrySuicide";
7 Aug 2015 by Itban Saeed Usmani
Hi,Since I am unable to find any meaningful solution of my problem so it made post the question here. I am new to CMFC Ribbon Application and I have to show a dialog when some event is triggered. - Do I need the dialog ID only?- What is the proper way of doing this? Any help...
17 Jan 2012 by Jason Gleim
Check your version of the Ribbon library. If you are using a version from 2010 or later, the themes are no longer present in the namespace nor does the ribbon support the themes anymore. MSDN's reference documentation no longer references the themes in the Ribbon's documentation.I believe...
29 Dec 2021 by Jo_vb.net
For my "Winform hosting WPF Ribbon demo" I want so save / load settings of the QuickAccessToolbar. I found a C# sample here: ribbon - Save/ load QuickAccessToolBar - Stack Overflow[^] and converted it with a tool. (I use VS 2019 Community for...
11 Jan 2022 by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
27 Jan 2022 by Jo_vb.net
My idea was to host a WPF user control with Ribbon within a WinForm VB.NET project and try to use MVVM pattern.
9 Aug 2020 by Jose Castillo
mainwindow I have a ribbon, when selecting a tab of the ribbon cargo a user control, when pricing a button from the ribbon tab I want to execute some changes in the user control, for example change the contents of a textbox, as I do?, I can not...
8 Aug 2015 by KarstenK
At first you need some message-handler in your app. Notice: The function must get called from in the app (or in the main thread else it will crash). Than you need a dialog: the easiest way is to create some with resource editor and use the wizard to create a class to wrap all up. I hope this...
30 Jul 2012 by Kenneth Haugland
Could you tell me why you didnt write this:Dim curBook as New Excel.WorkbookAnd the error seems to be missing dlls:http://social.msdn.microsoft.com/forums/en-US/vbgeneral/thread/88a6ea68-f476-4231-822f-27fabe59f458/[^]
22 Feb 2017 by Kornfeld Eliyahu Peter
To be able to debug a dll you need PDB files (Program Database) and source code...If you have both all left is to configure VS: Specify Symbol (.pdb) and Source Files in the Visual Studio Debugger[^]
14 Dec 2012 by Krunal Rohit
Christian is right but you must read this :http://compositewpf.codeplex.com/discussions/391079[^]
15 Jul 2013 by LordVovin
Hi All,I would like to kindly ask you for advice. I'm trying to make a ApplicationMenu which will be visible or not, or will handle event, depends which page is loaded to the form. ...
18 Apr 2012 by Maciej Los
I wrote for you a simple class to add and removes tabs (with forms). The solution is not perfect... You need to remember: this is an example!Steps to achieve a solution:1) We need an interface[^]Public Interface IFormsInTabs Function AddTab(ByVal frm As Windows.Forms.Form) As...
7 Mar 2013 by Maciej Los
Have a look here: Ribbon (WPF) – ribbon:RibbonComboBox[^]More about RibbonComboBox Class[^]Example: SelectionBoxWidth="30" VerticalAlignment="Center" IsEditable="False" > ...
9 Dec 2013 by Maciej Los
It is possoble to update ("edit") ribbon at runtime. There are 2 conditions:1) add resource,2) load ribbon from resourceHave a look here:Walkthrough: Creating a Ribbon Application By Using MFC[^]Walkthrough: Updating the MFC Scribble Application (Part 1)[^]Walkthrough: Updating the...
30 Dec 2013 by Maciej Los
Please, read my comment first.This great article might be helpful: Understanding Routed Events and Commands In WPF[^].For example, RibbonButton has got several events[^]. Follow the link[^] to see how to catch click event.Please, use SearchBox[^] for further information.
17 Jun 2019 by Maciej Los
As far as i remember, it should be something like this: this.ribbon.RibbonUI.ActivateTabMso("TabHome"); More:Office Activating Excel Ribbon Tab sample in C#, VB.NET for Visual Studio 2010[^]
29 Dec 2021 by Maciej Los
Try this: Dim remainingItemsCount As Integer = qatItems.Count(Function(qat) qat.Owner Is Nothing) Where is redundant! For further details, please read these: Enumerable.Count Method (System.Linq) | Microsoft Docs[^] Nothing keyword - Visual...
30 Dec 2013 by Mahesh Alappuzha
hi,i have a application for data viewing. in my application there is a ribbon bar contain bookmark,comment...etc.i want content Id in ribbon bar from the active Tab.please help me.
25 Mar 2013 by Manu Thalasseril
Can anyone help me to use the application menu in fluent ribbon. I cant find a single sample showing how to use the Application Menu in Fluent Ribbon after one day full search.Thanks in advance
25 Mar 2013 by Manu Thalasseril
I got the solution , actually it is very simple
28 Mar 2013 by Max Holder
Hello,have you set your window to RibbonWindow in code-behind too?Like this:public partial class MainWindow : RibbonWindowBTW: I tried the MS Ribbon myself too in the app I am currently developing.Then I saw this control: Fluent Ribbon Ctrol SuiteIt is free and much easier to...
10 Jul 2012 by Maximilien
If it works as before, buttons in the ribbon should have functions associated to them (to the ID) via the message map (ON_COMMAND and ON_UPDATE_UI_COMMAND) or something similar for teh ribbon..
12 Jul 2012 by Maximilien
( I don't have Windows 7)Aren't you supposed to use a CMFCRibbonColorButton[^] to implement that feature ?
22 Feb 2017 by Maximilien
Using Visual Studio 2015, C++ and trying to debug the Ribbon UI.I am probably just missing something obvious... I think I remember being able to do so some time ago.I have trying to debug and step into some Microsoft code and the debugger just won't let me.The code in question is...
13 Feb 2014 by Member 10523033
1. I have 2 Tab(Home and View)2. Click on Home, Button1 will display. while clicking Button1 two button(Save and Edit) will display in content control.3. when I Click on View Tab then Button2 is displaying but in content control both button(Save and Edit) is displaying. My question...
29 Feb 2016 by Member 11183408
I would like to change the text above the "press F1 for add-in help" in a custom ribbon. Based on my internet research it is not possible to change "press F1 for add-in help". However, I have seen that people change the bold text above it. i.e. MyDatabase.accdb to "Test".How is this text...
29 Feb 2016 by Member 11183408
The bold text above the "press F1 for add-in help" in a custom ribbon is set by the database property "AppTitle".db.Properties("AppTitle").value = "TEST" 'change AppTitleApplication.RefreshTitleBar 'refresh the title bar Use Macro Autokeys to capture {F1} keystroke and open help
30 Mar 2015 by Member 11567262
I have a ribbon toolbar in my desktop application. I've used a Windows Ribbon framework for it. There is a predefined button "File" for application menu. I want to customize it. Change title at least. I tried to set a new label for AppMenu button in .xml file, but it had no effect. Maybe there...
27 Nov 2018 by Member 14069291
Ribbon1.cs using Ribbon Designer (ie, no XML) I am trying to clear the contents of a Drop Down list before repopulating the list with new data. I have tried using Invalidate() in several places but I can't get it to work. The flow of the Addin is as followed: Copy text to clipboard -> works ...
11 Jan 2020 by Member 14711897
I'm new in WPF and I would like to create a reusable base menu ribbon (System.Windows.Controls.Ribbon). My purpose is to create the base structure of ribbon menu (Ribbon.QuickAccessToolBar + Ribbon.ApplicationMenu) that is shared from all application. But I'd like to have different usercontrol...
14 Dec 2012 by Member 7673788
Hi Experts, Please help me with the code to create Ribbon control in runtime using code behind in WPF application.
9 Dec 2012 by Member 9599663
I am creating a paint application. How can I create a brush just like in MS paint? I am using WPF platform.
6 Feb 2014 by mochenoo
Dear friends,I'm developing a plugin for an MFC based software using it's C++ SDK.I want to add Ribbon to the software and I'm sure that it is possible.So I have started by something like that:BOOL CMyPlugin::InitInstance(){ CWinAppEx::InitInstance(); ...
18 Jun 2013 by Nama Vinay
how to use ribbon bar inside ribbon tabitemi used Odyssey RibbonBar[^] as refference
19 Jun 2023 by Natanael Fredrick
Based on my understanding of load-balancing, requests are forwarded to multiple instances of a service so that if one service is down, it will be redirected to one that is available. I have created a microservice that implements load-balancing...
10 Jul 2012 by nbtthief
First, i want to tell that i dont have much knowledge about MFC, today i try to create a Ribbon style program.when i use ribbon toolbox to drag&drop any tool or button to my form, and click test button, every thing went right but when i compile and run every thing i add into my form grey out...
28 Sep 2021 by nbtthief
I want to create a toolbar like color picker tool in paint window 7, But i dont know how to draw image (at least a fill rect shape) on button?You can see how button Color 1 and Color 2 in paint window 7 working, i have a solution to imitate it, i use SetImageIndex() to change button image,...
12 Jul 2012 by nbtthief
Thank for replying!I know about CMFCRibbonGalleryButton, but this wont be what i want. If we use update image, so how many images i will prepare to change image (65,000+ color = 65,000+ images, OMG!)I have new solution, i will create new class derive from CMFCRibbonButton, then i'll...
25 Jul 2012 by nbtthief
I'm trying to make a Office-style app, for some button I use ribbon editor and load it as usual.m_wndRibbonBar.Create(this);m_wndRibbonBar.LoadFromResource(IDR_RIBBON);Then I override some CMFCRibbonButton, so I must have to add it by code as shown in above lines (not by ribbon editor...
11 Apr 2013 by NotPolitcallyCorrect
You have to do some basic research yourself. Your answer is here[^]
8 Mar 2012 by Pete O'Hanlon
Assuming you want the image to appear on the right hand side of each tab, you need to modify the template for the RibbonTab (if you only want it on one particular tab, you should put it on that tab only, by giving the style a name and tying the tab to that style). In the style I've put together...
22 Jan 2021 by Peter_in_2780
I don't know how much your Ribbon Workbench will get in the way, but the simple way is to give the button an ID and use that. in button definition ... id="themagicbutton" ... in your JSdocument.getElementById("themagicbutton").setDisabled(true);
1 Nov 2017 by peterboulton
Add new Ribbon themes to MFC application built using VS Feature Pack' classes
19 Mar 2015 by Ratnesh Mani Tripathi
Thanks Sir It Works.I give 5 star Out Of Five Star.
20 Feb 2017 by Ravi Bhavnani
I think you're approaching this problem the wrong way.If you want to re-use code that populates a list control from a collection or data source, abstract that functionality into a method in a new helper class (e.g. ListViewHelper) like so:public static PopulateListView (ListView...
2 Apr 2012 by rc89994
I am using prism for my Project in which i wish to use Ribbon using "RibbonControlsLibrary".I have a xml file as a resource file, from which the elements are to be loaded in Ribbon.The hierarchy for items is dependent on ParentID.If ParentID=0; it should be a RibbonTab. And the other...
17 Jan 2013 by Richard MacCutchan
Assuming you mean the new Office-style ribbon, take a look at these articles[^].
14 Nov 2013 by Richard MacCutchan
See these CodeProject articles[^].
19 May 2019 by Richard MacCutchan
ribbon panel vb.net - Google Search[^].
9 Dec 2012 by ridoy
http://stackoverflow.com/quest...
6 Feb 2015 by Ryanm1324
This is the first try at a custom ribbon change to outlook built from a Outlook 2013 Add-In. I can get the buttons to show, but what I need to do is only enable the button at the TabMail level if an email is actually selected. If there was no email in the folder, then it would be disabled. ...
18 Jun 2013 by Sergey Alexandrovich Kryukov
You could get more luck in asking the author of this work. Load the page you've referenced, locate on "Comments and Discussions" and click "Add a Comment or Question" to ask your question. The author will get a notification on your post and a chance to reply.But I would advise you to ask a...
4 May 2012 by sisy14
Hi,I am testing the WPF RibbonMenu control in a WinForms application and I have found a bug (I think)!I reproduced this 3 times now and hope someone out there has a workaround or Fix for it.These are the steps I have taken... Create New Winforms App Add an ElementHost and...
14 Nov 2013 by StoyanovZ
Hi!Here's the plot: I have a project with a standard layout - toolbars etc. I've been asked to change the layout to ribbon. Creating a new project doesn't seem to be an option, at least for now. Is it possible and how?Thanks in advance!
9 Dec 2013 by StoyanovZ
Hi again! I see there's a method for adding new categories to a ribbon at runtime, but it creates just an empty category. I wonder how the developer can add items to this new category? Is it actually possible at all?(it should be, 'cause having just an empty category makes no sense, at least to...
10 Apr 2014 by StoyanovZ
Hi! I'm implementing a multilanguage functionality in an mfc project. Everything's fine, but I don't know how to translate the built-in options in the QAT(More commands, Show above the ribbon etc...) Is it actually possible and how?
13 Aug 2014 by StoyanovZ
Here's the thing - we have a C++ MFC Project including a ribbon. We managed to hide the Main Button. Now we want to do the same with the QAT because it won't be used - we have our own QAT category. Is this possible and how?
13 Aug 2014 by StoyanovZ
Solved it! I inherited CMFCRibbonBar. I added a method delQAT() in which i call m_QAToolbar.RemoveAll(). In CMyAppMainFrame::OnCreate() I call this new method.class CRibbonBar : public CMFCRibbonBar{public: void delQAT() { m_QAToolbar.RemoveAll(); //m_QAToolbar is a...
1 Jul 2013 by SuperMiQi
Hello,I am using the Microsoft Ribbon Control but I got only one thing which does not work:Image: Mini Toolbar - RibbonIf I use the xml definition into a main ribbon I can get the PreviewEvent correctly from a combobox with GalleryItemPropertySet items.From the minitoolbar, the...
7 Aug 2019 by tajbender, KoglTH, JoseMenendez, toATwork, adriancs, kevin carbis, Michael Spradlin
Easily add a ribbon to a WinForms application
19 Jan 2012 by Tejas Vaishnav
I want to add my own button to the message ribbon next to the find/search button in outlook, on the send/compose mail section window....i heard that it is possible using addin so i want the some example to do my work if it is possible then visual demo example to modify the existing ribbon on...
27 Feb 2013 by Thakkar Amit
How to enable or disable the ribbon control using JavaScript.
20 Sep 2012 by theaob
I had the same problem with Ribbon:RibbonComboBox controller. Is your project .Net 3.5? That might be causing my problems.My workaround was to use the original ComboBox controller instead of Ribbon:RibbonComboBox.