Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# and DLL's Pin
MilesAhead16-Aug-04 10:00
MilesAhead16-Aug-04 10:00 
GeneralJava Classes Pin
eggie513-Aug-04 8:14
eggie513-Aug-04 8:14 
GeneralRe: Java Classes Pin
Nick Parker13-Aug-04 8:49
protectorNick Parker13-Aug-04 8:49 
GeneralRetrieving File Information Pin
matthias s.13-Aug-04 8:03
matthias s.13-Aug-04 8:03 
GeneralRe: Retrieving File Information Pin
Nick Parker13-Aug-04 9:04
protectorNick Parker13-Aug-04 9:04 
GeneralRe: Retrieving File Information Pin
matthias s.13-Aug-04 9:14
matthias s.13-Aug-04 9:14 
GeneralRe: Retrieving File Information Pin
Dave Kreskowiak13-Aug-04 9:54
mveDave Kreskowiak13-Aug-04 9:54 
GeneralTransparencyKey producing black flicker Pin
3Dizard13-Aug-04 7:10
3Dizard13-Aug-04 7:10 
My problem is the following:
I'd like to make my standard Form completely transparent. To do that I set TransparencyKey property to BackColor:

private void Form1_Load(object sender, System.EventArgs e)
{
this.TransparencyKey = this.BackColor;
}

This way the form in fact becomes transparent, but when it is shown, there is a short black flicker until the background gets transparent. A way I figuered out to get rid of that is to set the BackColor to pure black, too:

this.BackColor = Color.Black;

But this is no satisfying solution. To figure out what was going on I replaced the OnPaintBackground function with my own one, which simply does nothing:

protected override void OnPaintBackground(PaintEventArgs e)
{
//empty
}

The result is a black background. This background doesn't appear when BackColor is set to black as mentioned above. Does this happen on your machines, too? If this is a generic malfuncion: How can I circumvent this for any Color?

Thanks,
3Dizard

btw: I'm using visual studio .net 2002 on Windows XP SP1
GeneralRe: TransparencyKey producing black flicker Pin
Nick Parker13-Aug-04 8:38
protectorNick Parker13-Aug-04 8:38 
GeneralRe: TransparencyKey producing black flicker Pin
J. Dunlap13-Aug-04 12:24
J. Dunlap13-Aug-04 12:24 
GeneralRe: TransparencyKey producing black flicker Pin
3Dizard14-Aug-04 0:52
3Dizard14-Aug-04 0:52 
GeneralTAPI in C# Pin
Zeeshan Gulzar13-Aug-04 6:45
Zeeshan Gulzar13-Aug-04 6:45 
GeneralRe: TAPI in C# Pin
Nick Parker13-Aug-04 7:43
protectorNick Parker13-Aug-04 7:43 
GeneralVisual Studio oddities Pin
OBRon13-Aug-04 6:10
OBRon13-Aug-04 6:10 
GeneralIntelliSense-like addin Pin
LorenzoDV13-Aug-04 6:06
LorenzoDV13-Aug-04 6:06 
GeneralRe: IntelliSense-like addin Pin
Nick Parker13-Aug-04 7:46
protectorNick Parker13-Aug-04 7:46 
GeneralAbout form Pin
jzb13-Aug-04 5:59
jzb13-Aug-04 5:59 
GeneralRe: About form Pin
Nick Parker13-Aug-04 8:39
protectorNick Parker13-Aug-04 8:39 
GeneralRe: About form Pin
jzb13-Aug-04 16:28
jzb13-Aug-04 16:28 
GeneralSerious Issue Pin
sreejith ss nair13-Aug-04 5:38
sreejith ss nair13-Aug-04 5:38 
GeneralRe: Serious Issue Pin
Dave Kreskowiak13-Aug-04 9:41
mveDave Kreskowiak13-Aug-04 9:41 
GeneralRe: Serious Issue Pin
sreejith ss nair13-Aug-04 17:50
sreejith ss nair13-Aug-04 17:50 
GeneralRe: Serious Issue Pin
Dave Kreskowiak13-Aug-04 18:42
mveDave Kreskowiak13-Aug-04 18:42 
GeneralRe: Serious Issue Pin
sreejith ss nair13-Aug-04 18:57
sreejith ss nair13-Aug-04 18:57 
GeneralRe: Serious Issue Pin
mav.northwind13-Aug-04 21:33
mav.northwind13-Aug-04 21:33 

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.