Click here to Skip to main content
Click here to Skip to main content

Adding an Office 2007 Style to your StatusStrip!

, 21 Nov 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
An easy way to get the new look in your application...

Sample Image - statusstrip_demo.jpg


I'm a young German student, so please forgive my bad English... This year, I installed the new Office Suite by Microsoft, and from the first minute using it, I really got fond of the nice GUI, especially the good-looking statusbar. Because I never saw a tutorial on how to do a similar background (I saw some tutorials to draw single items) I decided to take the chance and write one myself.

How it works

At first, I added the Double-Buffer functionality by using this code (posted for absolute beginners):

Public Sub New() 
    Me.DoubleBuffered = True 
End Sub

To draw the background, you need the On_Paint event. The only thing to do is to draw the border on top and two LinearGradients (duration 1:2). If the SizingGrip should be painted (Me.SizingGrip = True), you should do it. To get the bounds to draw the SizingGrip, you can use this code:

Dim sgb As Rectangle = Me.SizeGripBounds

Using the Code

You can simply add the control to the toolbox and use it like a "regular" StatusStrip.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author


Germany Germany
No Biography provided

Comments and Discussions

Generalc# version Pinmemberradioman.lt12-Sep-08 1:22 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150224.1 | Last Updated 21 Nov 2006
Article Copyright 2006 by Tenschman
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid