Friday, January 12, 2007

gradient background control

C#.Every time you need gradient background for a particular control to make your windows application look more visual and appelaing. I have written a code that might help you.
Thorugh this you can created gradient button,toolstrip and menustrip or any control that have background .

Following are code in C#.NET 2.0. Here the example is for menustrip but you can use it for any
control.


class GreenMenuStrip: MenuStrip
{
protected override void OnPaintBackground(PaintEventArgs e)
{
base.OnPaintBackground(e);
Graphics g = e.Graphics;
Rectangle bounds = new Rectangle(Point.Empty, this.Size);

if (bounds.Width > 0 && bounds.Height > 0)
{

using (Brush b = new LinearGradientBrush(bounds,Color.FromArgb
(183,214,183) , Color.FromArgb(221,235,221),
inearGradientMode.BackwardDiagonal))
{
g.FillRectangle(b, bounds);
}
}
}
}
Share:
Thursday, January 11, 2007

www.windowsforms.net- The Ultimate resource for windows forms

,I have found the most ultimate resource from Microsoft. The site called windows forms
which have all the information that a windows forms developer and smart client application
developer require.

it has following section

1) Get Started- where basic information is there for new windows forms developer.

2) Learn- Which has some great articles.

3) FAQ- This section contains all the questions that a windows application developer go through
with all the answers.

4) Downloads-This section provide great applications to download.

5) Resources- This section provide the links to resources that a developer might require.

6) Forums- A great forums for windows application developer.

For more details go to the following link:

http://www.windowsforms.net/
Share:

Windows Vista- New Micorsoft Operating System- Vista Feautres

Recently the Micros ft Official launches the It's new generation Operating System called,windows vista. It is one of most advance step of Microsoft towards the new generation operating system.

It has some great features.. Following are the some features of the windows vista.

1) User Interface

It has great and stunning user interfaces. It is eye candy and very easy to operate it.It provides the great visual experience to the user.

2) Security


It is Microsoft's most secure operating system till date.The OS that could match up security level of MAC and Linux.

3) Better Filer Organization and Search
The user can search and manages files much better then the older version of Microsoft operating system.New feature like instant search can perform search anywhere.

4) Internet Explorer 7
Windows vista is now coming with Internet explorer 7.0. It has very great features. You can check my previous post regarding Internet explorer 7.0.

5) Windows Sidebar and Gadgets


Windows Sidebar boosts your personal productivity by providing instant access to gadgets—a wide variety of engaging, easy-to-use, and customizable mini-applications that offer information at a glance and provide easy access to frequently used tools.
6) Performance
It will increase the performance of computer with features like Sleep, Windows Super Fetch, Windows ReadyBoost, and Windows ReadyDrive.
7) Backup
Windows Vista provides valuable new innovations to help ensure you never lose information that is important to you. Windows Vista offers multiple layers of backup and restore protection from hardware failure, user error, or other issues.
8) Networking
windows vista has some great features for networking to manage your network and boost your network performance.Windows vista has some other great features like speech recognition, help and feedback etc.
for more details please visit following link...
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews