Click here to Skip to main content
15,925,369 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to implement a registration key for my application? Pin
Mr. Rogers15-Aug-04 5:45
Mr. Rogers15-Aug-04 5:45 
GeneralRe: How to implement a registration key for my application? Pin
ting66815-Aug-04 15:49
ting66815-Aug-04 15:49 
GeneralRe: How to implement a registration key for my application? Pin
Mr. Rogers16-Aug-04 8:27
Mr. Rogers16-Aug-04 8:27 
QuestionRAS in C#? Pin
econner13-Aug-04 17:55
econner13-Aug-04 17:55 
AnswerRe: RAS in C#? Pin
Mazdak13-Aug-04 19:15
Mazdak13-Aug-04 19:15 
GeneralAbout unicode Pin
jzb13-Aug-04 16:47
jzb13-Aug-04 16:47 
GeneralRe: About unicode Pin
Mazdak13-Aug-04 19:21
Mazdak13-Aug-04 19:21 
GeneralWin32_GroupUser Pin
leifm13-Aug-04 9:40
leifm13-Aug-04 9:40 
GeneralRe: Win32_GroupUser Pin
Nick Parker13-Aug-04 10:30
protectorNick Parker13-Aug-04 10:30 
GeneralError loading Windows Form from console App Pin
Gumnaam13-Aug-04 9:03
Gumnaam13-Aug-04 9:03 
GeneralRe: Error loading Windows Form from console App Pin
Nick Parker13-Aug-04 9:28
protectorNick Parker13-Aug-04 9:28 
GeneralRe: Error loading Windows Form from console App Pin
Danny Rodriguez14-Aug-04 15:35
Danny Rodriguez14-Aug-04 15:35 
GeneralC# and DLL's Pin
Ed Hopkins13-Aug-04 8:32
Ed Hopkins13-Aug-04 8:32 
GeneralRe: C# and DLL's Pin
Nick Parker13-Aug-04 9:08
protectorNick Parker13-Aug-04 9:08 
GeneralRe: C# and DLL's Pin
Ed Hopkins13-Aug-04 9:20
Ed Hopkins13-Aug-04 9:20 
GeneralRe: C# and DLL's Pin
MilesAhead15-Aug-04 13:02
MilesAhead15-Aug-04 13:02 
GeneralRe: C# and DLL's Pin
Ed Hopkins16-Aug-04 9:28
Ed Hopkins16-Aug-04 9:28 
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

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.