?
Solved

Quick Help Needed Hense points

Posted on 2003-12-10
3
Medium Priority
?
220 Views
Last Modified: 2012-05-04
How do i create a label which uses two backcolors one for the top and one for bottom with the colors merging into each other?
HELP!
thanks in advavce
Chris
0
Comment
Question by:chris_shadow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Accepted Solution

by:
testn earned 2000 total points
ID: 9911603
0
 
LVL 10

Expert Comment

by:smegghead
ID: 9912036
I'm not sure what those links do, as they seem to be dead.. maybe it's just my browser.

So I'm sorry if I repeat what's in those links

But what you could do is just draw a rectangle on the screen behind the label, then just set the label's backcolor to be transparent.

Something like

e.Graphics.FillRectangle(new LinearGradientBrush(BoundsOfLabel,Color.LightGreen,Color.Green,30,true),BoundsOfLabel);

HTH

Smg
0
 

Author Comment

by:chris_shadow
ID: 9912090
thanks once again testn
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

777 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