Click here to Skip to main content
13,195,991 members (54,215 online)
Click here to Skip to main content
Add your own
alternative version


23 bookmarked
Posted 21 Nov 2006

Adding an Office 2007 Style to your StatusStrip!

, 21 Nov 2006
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

You may also be interested in...


Comments and Discussions

Generalc# version Pin
radioman.lt12-Sep-08 0:22
memberradioman.lt12-Sep-08 0:22 

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171019.1 | Last Updated 21 Nov 2006
Article Copyright 2006 by Tenschman
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid