?
Solved

How do I create a gradient background on a form in C# .net 3.5?

Posted on 2008-11-08
2
Medium Priority
?
1,806 Views
Last Modified: 2013-12-17
Hi Guys,

There is no clear cut example on how to do this. I need to create a function that can create a gradient background on a windows form which can show a gradient with three colors. The key here is I want the gradient to show through a transparent button or panel. The examples out there are poor and when I set a control to transparent,the gradient does not show through. The transparency goes to the root color of the form. I want to make the gradient the root color of the form. Can anyone show me how to accomplish this?

Thanks,

Stephane
0
Comment
Question by:MrTouya
2 Comments
 

Accepted Solution

by:
raistlinthewiz earned 1500 total points
ID: 22912349
You may look the gradient panels example from http://www.openwinforms.com/creating_cool_gradient_panel_gdi.html
0
 

Author Comment

by:MrTouya
ID: 22912907
Thanks!. Than helped.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question