Windows Ribbon for WinForms, Part 10 – Working With Images

Saturday, October 24, 2009

In this post we'll review the ribbon framework images terminology and see how to set images both statically and dynamically in your WinForms application. More details can be found at Specifying Ribbon Image Resources on MSDN. Large Images vs. Small Images Many ribbon controls allow you to specify an image. For example: Button, ComboBox, and Spinner. Most of these controls have two properties, one for a large image and one for small. The Ribbon framework will choose one of these sizes according to the available screen space...

Windows Ribbon for WinForms, Part 9 – Changing Ribbon Colors

Thursday, October 22, 2009

Introduction to the feature The feature I want to talk about today is how to change the ribbon general colors. Note that you can’t change the colors of a specific ribbon item, only the entire ribbon. There are 3 colors we can change: Background Color Highlight Color Text Color Here is an example of a colored ribbon: How to do it? I’ve added a new method to the...

How to convert an image to 32 bit BMP

Sunday, October 4, 2009

BMP image format can be saved in several different pixel format. Some programs and APIs requires their resources to be in 32bit BMP. Unfortunately, Microsoft Paint support saving only 24bit BMPs. Since this issue is raised a lot when dealing with Windows Ribbon Framework I’ve decided to solve it once and for all. I’ve written a small console application that converts images into 32bit BMPs. you can get convert2bmp.exe here, under “Other Available Downloads”. Using the program convert2bmp <source> <target> for example: convert2bmp my24bit.BMP my32bit.BMP What the program...