Click here to Skip to main content
15,903,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sending multiple items to the clipboard? Pin
James T. Johnson13-Feb-02 12:22
James T. Johnson13-Feb-02 12:22 
GeneralRe: Sending multiple items to the clipboard? Pin
14-Feb-02 4:42
suss14-Feb-02 4:42 
GeneralPorting MFC Container into C# Pin
13-Feb-02 7:58
suss13-Feb-02 7:58 
Generaldrawing an icon on a form Pin
Senkwe Chanda13-Feb-02 2:34
Senkwe Chanda13-Feb-02 2:34 
GeneralRe: drawing an icon on a form Pin
Peter Stephens13-Feb-02 10:30
Peter Stephens13-Feb-02 10:30 
GeneralRe: drawing an icon on a form Pin
Senkwe Chanda13-Feb-02 19:15
Senkwe Chanda13-Feb-02 19:15 
GeneralAuthenticating request from another machine Pin
bcooper13-Feb-02 2:29
bcooper13-Feb-02 2:29 
GeneralTransparent backgrounds for controls Pin
Profox Jase13-Feb-02 2:11
Profox Jase13-Feb-02 2:11 
Hello there....

I am new to c# (and c like languages in general) and I am trying make a user defined control - essentially just a graphic with a few methods for moving it around and collision detection etc (guess what I am trying to write!).

So far I think I have got my head around overriding the onPaint method for my new control, and in this overridden method I construct a simple polygon out of an array of points. Now, I think I have conquered the collision detection (in a somewhat shoddy manner I am sure) but for can't work out how to make my control background transparent - the only part of the control I want displayed is the polygon, but instead I get the polygon and the control background (a grey rectangle or whatever colour I set it to).

My current investigations are leading me in the direction of Control.setStyle but can't quite get it right. Can anybody please help me? Confused | :confused:

Incidentally, I have tried setting the paintEventArgs.graphics.cliparea to be a region that matches the polygon, but I still get the graphics object background being displayed.

Write soon, and save me a headache.
Cheers,

Jason King

jason.king@profox.co.uk
Feel the love at www.profox.co.uk
GeneralRe: Transparent backgrounds for controls Pin
Senkwe Chanda13-Feb-02 3:16
Senkwe Chanda13-Feb-02 3:16 
GeneralRe: Transparent backgrounds for controls Pin
Profox Jase13-Feb-02 5:38
Profox Jase13-Feb-02 5:38 
GeneralRe: Transparent backgrounds for controls Pin
James T. Johnson13-Feb-02 8:11
James T. Johnson13-Feb-02 8:11 
GeneralRe: Transparent backgrounds for controls Pin
Profox Jase17-Feb-02 0:46
Profox Jase17-Feb-02 0:46 
GeneralC# and .NET books Pin
Oyvind Bratland13-Feb-02 0:42
Oyvind Bratland13-Feb-02 0:42 
GeneralRe: C# and .NET books Pin
Mazdak13-Feb-02 2:15
Mazdak13-Feb-02 2:15 
GeneralRe: C# and .NET books Pin
Oyvind Bratland13-Feb-02 2:21
Oyvind Bratland13-Feb-02 2:21 
GeneralRe: C# and .NET books Pin
Peter Stephens13-Feb-02 10:29
Peter Stephens13-Feb-02 10:29 
GeneralRe: C# and .NET books Pin
Oyvind Bratland13-Feb-02 19:57
Oyvind Bratland13-Feb-02 19:57 
GeneralRe: C# and .NET books Pin
James T. Johnson13-Feb-02 20:00
James T. Johnson13-Feb-02 20:00 
GeneralRe: C# and .NET books Pin
Peter Stephens14-Feb-02 8:45
Peter Stephens14-Feb-02 8:45 
GeneralRe: C# and .NET books Pin
TigerNinja_18-Feb-02 7:31
TigerNinja_18-Feb-02 7:31 
GeneralRe: C# and .NET books Pin
Tom Archer18-Feb-02 15:42
Tom Archer18-Feb-02 15:42 
GeneralRe: C# and .NET books Pin
Oyvind Bratland18-Feb-02 20:18
Oyvind Bratland18-Feb-02 20:18 
GeneralRe: C# and .NET books Pin
Tom Archer19-Feb-02 2:02
Tom Archer19-Feb-02 2:02 
GeneralRe: C# and .NET books Pin
Oyvind Bratland19-Feb-02 2:02
Oyvind Bratland19-Feb-02 2:02 
GeneralRe: C# and .NET books Pin
Tom Archer19-Feb-02 2:13
Tom Archer19-Feb-02 2:13 

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.