Click here to Skip to main content
14,333,069 members

Easily Add a Ribbon into a WinForms Application

, , , , ,
Rate this:
4.89 (251 votes)
Please Sign up or sign in to vote.
4.89 (251 votes)
7 Aug 2019Ms-PL
Easily add a ribbon to a WinForms application

Style 2007

Image 1

Style 2010

Image 2

Style 2013

Image 3

Background

The ribbon that is going to be used in this article is an open source project created by Jose Menendez Poo. However, the original author of the ribbon has stopped support of it. A group of fans of this ribbon re-host and continue to develop/enhance and support the ribbon.

The original ribbon creator has posted an article explaining what this ribbon is all about at [A Professional Ribbon You Will Use (Now with orb!)]. However, that article doesn't describe how to use it in your project. Therefore, this article will show how to use it.

How to Use this Ribbon Control

The ribbon class library can be added via Nuget. Right click your project and go to "Manage Nuget Packages..."

Image 4

Search "RibbonWinForms" and install the nuget package.

Image 5

Drag the ribbon control into the form.

Image 6

Click "Add Tab".

Image 7

Click "Add Panel".

Image 8

Showing the commands of the "Panel":

Image 9

Click the command and add the controls you want.

Image 10

Changing the icon and button text label.

Image 11

Adding the "Click" event.

Image 12

Type the commands that you wish to do in the event block.

Image 13

Now, try run the application.

Image 14

Example of using RibbonForm style.

Image 15

Replace the inheritance of "Form":

Image 16

to "RibbonForm".

Image 17

Note

Some behaviour of "RibbonForm" might not be working properly in some unknown circumstances. We recommended that you to perform the test in your environment before delivering your application into production.

Alternative Ribbon Control

Windows Ribbon Framework
https://docs.microsoft.com/en-us/windows/win32/windowsribbon/-uiplat-windowsribbon-entry 
Support Windows 7 onwards

Krypton WinForms components for .NET
https://github.com/ComponentFactory/Krypton

RibbonLib
https://github.com/ennerperez/RibbonLib 
https://www.nuget.org/packages/RibbonLib

Windows Ribbon for WinForms
https://github.com/ennerperez/RibbonLib 
http://blogs.microsoft.co.il/arik/2010/11/08/windows-ribbon-for-winforms-v26-released/ 
http://www.codeproject.com/Articles/55599/Windows-Ribbon-for-WinForms-Part-0-Table-of-Conten

Ribbon by Juan Pablo G.C.
http://www.codeproject.com/Articles/18449/An-easy-way-to-add-a-Ribbon-Panel-Office-2007-styl 
http://www.codeproject.com/Articles/19044/The-new-RibbonForm-RibbonRoundButton-and-FastMenu

History

  • 8th August, 2019: Publish Nuget Package, several bug fixes
  • 12th April, 2012: Initial version

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)

Share

About the Authors

Jose Menendez Póo
Team Leader
Mexico Mexico
I'm in game programming now: https://itunes.apple.com/us/app/ugly-aliens-training-center/id859271884?ls=1&mt=8

Jose Manuel Menéndez Poó

- I've been programming Windows and Web apps since 1997.
- My greatest concern nowadays is user interface usability.

Questions and stuff by twitter: @menendezpoo

Blog
menendezpoo.com

adriancs
Software Developer
Malaysia Malaysia
Programming is an art.

toATwork
Software Developer (Senior)
Austria Austria
No Biography provided

Michael Spradlin
Software Developer (Senior)
United States United States
Lead Software Engineer on a paperless office / workflow system. I specialize in building custom user controls and components that are using in my everyday software. I've also worked with Neural Networks for character recognition on documents in my paperless office software.

tajbender
Software Developer (Senior)
Germany Germany
No Biography provided

KoglTH
United States United States
No Biography provided

Comments and Discussions

 
QuestionNuGet Ribbon Control Pin
Member 1336888012-Sep-19 19:33
memberMember 1336888012-Sep-19 19:33 
QuestionBoton_Click Pin
Member 1451403611-Aug-19 21:18
memberMember 1451403611-Aug-19 21:18 
AnswerRe: Boton_Click Pin
adriancs12-Aug-19 4:37
professionaladriancs12-Aug-19 4:37 
GeneralMy vote of 3 Pin
Member 42464749-Aug-19 16:32
memberMember 42464749-Aug-19 16:32 
GeneralMy vote of 5 Pin
dmjm-h9-Aug-19 12:00
memberdmjm-h9-Aug-19 12:00 
SuggestionAnother Winforms Ribbon option. Pin
gardner90329-Aug-19 9:59
membergardner90329-Aug-19 9:59 
GeneralMy vote of 5 Pin
Franc Morales8-Aug-19 22:07
memberFranc Morales8-Aug-19 22:07 
QuestionVery nice example for ribbon menu Pin
Mou_kol8-Aug-19 20:41
memberMou_kol8-Aug-19 20:41 
QuestionLast thing doesn't work Pin
Jordan Ferrazza16-May-19 19:12
memberJordan Ferrazza16-May-19 19:12 
QuestionHow to Add dynamic rib button Pin
Radhakrishnan V13-May-19 20:52
memberRadhakrishnan V13-May-19 20:52 
Questionorb button not work on RTL Pin
mm.ebrahimi28-Nov-18 17:52
membermm.ebrahimi28-Nov-18 17:52 
QuestionTabindex Pin
KANNABICUS14-Sep-18 7:35
memberKANNABICUS14-Sep-18 7:35 
Praiseyour work is ingenious... Pin
marcelo iván rojas hernández13-Jul-18 5:49
membermarcelo iván rojas hernández13-Jul-18 5:49 
QuestionBlue window border when containing Form inherits from Ribbon instead of inheriting from Form and Black Tab names background when changing orb style at runtime Pin
maultby9-Jul-18 22:30
membermaultby9-Jul-18 22:30 
QuestionRibbonComboBox Issue Pin
Member 1384943929-May-18 2:51
memberMember 1384943929-May-18 2:51 
AnswerRe: RibbonComboBox Issue Pin
Member 1384943930-May-18 3:23
memberMember 1384943930-May-18 3:23 
GeneralThanks for your excellent control Pin
Southmountain20-Mar-18 16:23
memberSouthmountain20-Mar-18 16:23 
QuestionFrom where to get System.Windows.Forms.Ribbon35.dll Pin
Mou_kol19-Mar-18 22:12
memberMou_kol19-Mar-18 22:12 
AnswerRe: From where to get System.Windows.Forms.Ribbon35.dll Pin
RickZeeland20-Mar-18 8:20
mveRickZeeland20-Mar-18 8:20 
QuestionMouseClick not processed when Ribbon is updating Pin
Marco Tenuti4-Dec-17 9:35
memberMarco Tenuti4-Dec-17 9:35 
Questionhow to drop down a menu items from the OrbDropDown? Pin
Mahmoud Ayman8-Nov-17 21:51
memberMahmoud Ayman8-Nov-17 21:51 
QuestionHow to stop auto hide of Ribbon Tab on double click on menu. Pin
Ramveer Singh from Gurgaon, Haryana20-Mar-17 23:03
memberRamveer Singh from Gurgaon, Haryana20-Mar-17 23:03 
AnswerRe: How to stop auto hide of Ribbon Tab on double click on menu. Pin
niuzj20-May-17 16:45
memberniuzj20-May-17 16:45 
SuggestionRe: How to stop auto hide of Ribbon Tab on double click on menu. Pin
谢龙6-Sep-17 21:10
professional谢龙6-Sep-17 21:10 
QuestionRibbon Controls alignment inside a RibbonPanel Pin
fastlater_pro6-Mar-17 15:28
memberfastlater_pro6-Mar-17 15:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Article
Posted 11 Apr 2012

Stats

1.8M views
38K downloads
608 bookmarked