Monday, September 16, 2013

Visual Studio 2010 Theme Like Background

Create Visual Studio 2010 Background Theme in C#


Preview:





Source Code :

How to use :

In Form or Control OnPaintEvent()
Add the Following Code :

Graphics g = this.CreateGraphics(); 
Color DarkColor = Color.FromArgb(53, 73, 106); //Your Color1 
Color LightColor = Color.FromArgb(41, 57, 85); //Your Color2 
ManiX.THEME.DrawBackground(g.GetHdc(), this.ClientRectangle, DarkColor,LightColor); 
g.ReleaseHdc();