Click here to Skip to main content
15,919,434 members
Home / Discussions / C#
   

C#

 
QuestionMemory Reading Pin
Expert Coming18-Feb-06 17:55
Expert Coming18-Feb-06 17:55 
AnswerRe: Memory Reading Pin
Sean8918-Feb-06 18:19
Sean8918-Feb-06 18:19 
QuestionLink label transparency... Pin
Kasic Slobodan18-Feb-06 16:27
Kasic Slobodan18-Feb-06 16:27 
AnswerRe: Link label transparency... Pin
Joshua Quick18-Feb-06 17:16
Joshua Quick18-Feb-06 17:16 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 3:43
Kasic Slobodan19-Feb-06 3:43 
GeneralRe: Link label transparency... Pin
Joshua Quick19-Feb-06 10:43
Joshua Quick19-Feb-06 10:43 
GeneralRe: Link label transparency... Pin
Kasic Slobodan19-Feb-06 14:01
Kasic Slobodan19-Feb-06 14:01 
GeneralRe: Link label transparency... Pin
mav.northwind19-Feb-06 20:08
mav.northwind19-Feb-06 20:08 
The problem is that the standard LinkLabel doesn't have the control style SupportsTransparentBackColor set, so you'll get the InvalidParameterException.
Usually you set these styles in the constructor of your control.
So what you really would have to do is to create a new class that inherits from LinkLabel:
public class MyLinkLabel : LinkLabel
{
  public MyLinkLabel() : base()
  {
    this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
  }
}
Now, when you use your MyLinkLabel you won't get the error message when you assign Transparent as background color.
Don't know how the painting works, though. Could be that the link label doesn't paint itself properly when it's been assigned a transparent back color. In this case you'd have to override OnPaintBackground() and/or OnPaint().

Regards,
mav

--
Black holes are the places where god divided by 0...
GeneralRe: Link label transparency... Pin
Kasic Slobodan20-Feb-06 4:53
Kasic Slobodan20-Feb-06 4:53 
QuestionGetType() fails, but why Pin
User 665818-Feb-06 14:01
User 665818-Feb-06 14:01 
AnswerRe: GetType() fails, but why Pin
darkelv18-Feb-06 14:39
darkelv18-Feb-06 14:39 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 2:10
User 665819-Feb-06 2:10 
AnswerRe: GetType() fails, but why Pin
Guffa19-Feb-06 2:17
Guffa19-Feb-06 2:17 
GeneralRe: GetType() fails, but why Pin
darkelv19-Feb-06 2:58
darkelv19-Feb-06 2:58 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 4:08
User 665819-Feb-06 4:08 
GeneralRe: GetType() fails, but why Pin
darkelv19-Feb-06 5:26
darkelv19-Feb-06 5:26 
GeneralRe: GetType() fails, but why Pin
User 665819-Feb-06 5:49
User 665819-Feb-06 5:49 
AnswerRe: GetType() fails, but why Pin
leppie19-Feb-06 6:08
leppie19-Feb-06 6:08 
QuestionSuggestions for a C# Windows project to learn C# Pin
LuluSailor18-Feb-06 12:57
LuluSailor18-Feb-06 12:57 
AnswerRe: Suggestions for a C# Windows project to learn C# Pin
Koushik Biswas18-Feb-06 13:21
Koushik Biswas18-Feb-06 13:21 
AnswerRe: Suggestions for a C# Windows project to learn C# Pin
Colin Angus Mackay18-Feb-06 13:37
Colin Angus Mackay18-Feb-06 13:37 
QuestionGenerating mouse clicks on desktop Pin
shunnyboy18-Feb-06 11:30
shunnyboy18-Feb-06 11:30 
AnswerRe: Generating mouse clicks on desktop Pin
shamsallana18-Mar-06 11:15
shamsallana18-Mar-06 11:15 
Question[VS 2005] Show a context menu by left click a button Pin
Susuko18-Feb-06 10:46
Susuko18-Feb-06 10:46 
AnswerRe: [VS 2005] Show a context menu by left click a button Pin
BambooMoon18-Feb-06 11:20
BambooMoon18-Feb-06 11:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.