Solved

Quick Help Needed Hense points

Posted on 2003-12-10
3
219 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 500 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

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…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

726 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