Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: Taking screenshots of PCs on LAN Pin
teknolog12312-Sep-10 10:15
teknolog12312-Sep-10 10:15 
GeneralRe: Taking screenshots of PCs on LAN Pin
Luc Pattyn12-Sep-10 10:18
sitebuilderLuc Pattyn12-Sep-10 10:18 
QuestionPainting on transparent background multiple times Pin
fdsfsa76f7sa612-Sep-10 1:47
fdsfsa76f7sa612-Sep-10 1:47 
AnswerRe: Painting on transparent background multiple times Pin
Abhishek Sur12-Sep-10 2:39
professionalAbhishek Sur12-Sep-10 2:39 
GeneralRe: Painting on transparent background multiple times Pin
fdsfsa76f7sa612-Sep-10 3:06
fdsfsa76f7sa612-Sep-10 3:06 
GeneralRe: Painting on transparent background multiple times Pin
Dave Kreskowiak12-Sep-10 5:13
mveDave Kreskowiak12-Sep-10 5:13 
GeneralRe: Painting on transparent background multiple times Pin
fdsfsa76f7sa612-Sep-10 8:49
fdsfsa76f7sa612-Sep-10 8:49 
AnswerRe: Painting on transparent background multiple times Pin
Luc Pattyn12-Sep-10 9:39
sitebuilderLuc Pattyn12-Sep-10 9:39 
I agree with Dave, purchasing a new panel (or anything else) inside the Paint handler is not a great idea and should be avoided.

I'm no expert on transparency graphics, and I am aware WinForms treats it in strange ways. My guess is selecting a transparent background color causes Windows not to erase the Control (i.e. not to repaint the background), so whatever gets painted never gets removed. What you could try is start your Paint handler with something based on Graphics.FillRectangle(Brushes.Transparent, Panel.Bounds), mind you I haven't tested this.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: Painting on transparent background multiple times Pin
fdsfsa76f7sa612-Sep-10 10:50
fdsfsa76f7sa612-Sep-10 10:50 
GeneralRe: Painting on transparent background multiple times Pin
Luc Pattyn12-Sep-10 10:56
sitebuilderLuc Pattyn12-Sep-10 10:56 
Questionhow to call onPaint from Timer Pin
bimbambumbum11-Sep-10 19:13
bimbambumbum11-Sep-10 19:13 
AnswerRe: how to call onPaint from Timer Pin
Abhinav S11-Sep-10 19:35
Abhinav S11-Sep-10 19:35 
GeneralRe: how to call onPaint from Timer Pin
bimbambumbum11-Sep-10 19:40
bimbambumbum11-Sep-10 19:40 
GeneralRe: how to call onPaint from Timer Pin
Thomas Stockwell12-Sep-10 8:29
professionalThomas Stockwell12-Sep-10 8:29 
Questioncustom titlebar Pin
Jassim Rahma11-Sep-10 7:31
Jassim Rahma11-Sep-10 7:31 
AnswerRe: custom titlebar Pin
Abhishek Sur11-Sep-10 10:50
professionalAbhishek Sur11-Sep-10 10:50 
AnswerRe: custom titlebar Pin
Ravi Bhavnani11-Sep-10 15:41
professionalRavi Bhavnani11-Sep-10 15:41 
AnswerRe: custom titlebar Pin
Abhinav S11-Sep-10 21:25
Abhinav S11-Sep-10 21:25 
AnswerRe: custom titlebar Pin
Thomas Stockwell12-Sep-10 8:30
professionalThomas Stockwell12-Sep-10 8:30 
QuestionMessage Removed Pin
11-Sep-10 3:08
arkiboys11-Sep-10 3:08 
AnswerRe: Calculation Pin
Richard MacCutchan11-Sep-10 3:31
mveRichard MacCutchan11-Sep-10 3:31 
AnswerRe: Calculation Pin
harold aptroot11-Sep-10 3:34
harold aptroot11-Sep-10 3:34 
GeneralMessage Removed Pin
11-Sep-10 3:36
arkiboys11-Sep-10 3:36 
GeneralRe: Calculation Pin
PIEBALDconsult11-Sep-10 4:03
mvePIEBALDconsult11-Sep-10 4:03 
GeneralRe: Calculation Pin
Luc Pattyn11-Sep-10 4:06
sitebuilderLuc Pattyn11-Sep-10 4:06 

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.