Solved

Quick Help Needed Hense points

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now