Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
GeneralRe: read multiple images from database Pin
jung197512-Jan-06 10:31
jung197512-Jan-06 10:31 
Question[GDI+] avoid flickering for a moving panel part 2 Pin
Sasuko11-Jan-06 12:04
Sasuko11-Jan-06 12:04 
AnswerRe: [GDI+] avoid flickering for a moving panel part 2 Pin
Christian Graus11-Jan-06 13:06
protectorChristian Graus11-Jan-06 13:06 
AnswerRe: [GDI+] avoid flickering for a moving panel part 2 Pin
Curtis Schlak.11-Jan-06 13:12
Curtis Schlak.11-Jan-06 13:12 
GeneralRe: [GDI+] avoid flickering for a moving panel part 2 Pin
Sasuko11-Jan-06 13:41
Sasuko11-Jan-06 13:41 
GeneralRe: [GDI+] avoid flickering for a moving panel part 2 Pin
Curtis Schlak.11-Jan-06 13:58
Curtis Schlak.11-Jan-06 13:58 
GeneralRe: [GDI+] avoid flickering for a moving panel part 2 Pin
Sasuko11-Jan-06 14:13
Sasuko11-Jan-06 14:13 
GeneralRe: [GDI+] avoid flickering for a moving panel part 2 Pin
exhaulted12-Jan-06 3:39
exhaulted12-Jan-06 3:39 
I have an application that animates a form with a transparent panel, i don't use Double Buffering and i had the same problem you are having. To be quite honest i'm not sure exactly what fixed the problem but here's the method i'm using to set the transparency, hopefully it'll work for you.
private void MakeTransparent()
{
Bitmap bitmap = (Bitmap)pnlBackground.BackgroundImage;
bitmap.MakeTransparent(bitmap.GetPixel(1, 1));
TransparencyKey = BackColor;
WindowState = FormWindowState.Normal;
}


The window starts minimised and then i bring it onto screen from this method which is called in Form_Load, otherwise i get a black border around my form. The panel pnlBackground is docked to the form. I don't do anything special when i'm annimating the form so if this doesn't help then post your code that mvoes your panel and i'll see if i can help.

Cheers

Kev
QuestionCombobox DataSource Pin
code_wiz11-Jan-06 11:57
code_wiz11-Jan-06 11:57 
AnswerRe: Combobox DataSource Pin
Christian Graus11-Jan-06 11:58
protectorChristian Graus11-Jan-06 11:58 
GeneralRe: Combobox DataSource Pin
code_wiz11-Jan-06 12:45
code_wiz11-Jan-06 12:45 
GeneralRe: Combobox DataSource Pin
Christian Graus11-Jan-06 13:03
protectorChristian Graus11-Jan-06 13:03 
GeneralRe: Combobox DataSource Pin
code_wiz11-Jan-06 13:38
code_wiz11-Jan-06 13:38 
GeneralRe: Combobox DataSource Pin
Christian Graus11-Jan-06 13:41
protectorChristian Graus11-Jan-06 13:41 
GeneralRe: Combobox DataSource Pin
code_wiz11-Jan-06 14:39
code_wiz11-Jan-06 14:39 
GeneralRe: Combobox DataSource Pin
Christian Graus11-Jan-06 14:42
protectorChristian Graus11-Jan-06 14:42 
GeneralRe: Combobox DataSource Pin
microsoc11-Jan-06 16:29
microsoc11-Jan-06 16:29 
GeneralRe: Combobox DataSource Pin
code_wiz11-Jan-06 22:18
code_wiz11-Jan-06 22:18 
Questionis datarow selected? Pin
melanieab11-Jan-06 10:47
melanieab11-Jan-06 10:47 
AnswerRe: is datarow selected? Pin
melanieab11-Jan-06 10:59
melanieab11-Jan-06 10:59 
Questionhow to use sound files in C# ? Pin
crusher_shark11-Jan-06 8:54
crusher_shark11-Jan-06 8:54 
AnswerRe: how to use sound files in C# ? Pin
Judah Gabriel Himango11-Jan-06 10:00
sponsorJudah Gabriel Himango11-Jan-06 10:00 
GeneralRe: how to use sound files in C# ? Pin
crusher_shark11-Jan-06 10:54
crusher_shark11-Jan-06 10:54 
AnswerRe: how to use sound files in C# ? Pin
Christian Graus11-Jan-06 10:53
protectorChristian Graus11-Jan-06 10:53 
GeneralRe: how to use sound files in C# ? Pin
crusher_shark11-Jan-06 11:08
crusher_shark11-Jan-06 11:08 

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.