Click here to Skip to main content
15,923,051 members
Home / Discussions / C#
   

C#

 
AnswerRe: Time Difference Calculation In C# Pin
J4amieC12-Sep-10 23:25
J4amieC12-Sep-10 23:25 
AnswerRe: Time Difference Calculation In C# Pin
Luc Pattyn13-Sep-10 2:36
sitebuilderLuc Pattyn13-Sep-10 2:36 
QuestionHow to represent this type of data in a c# app? Pin
stephen.darling12-Sep-10 11:37
stephen.darling12-Sep-10 11:37 
AnswerRe: How to represent this type of data in a c# app? Pin
Luc Pattyn12-Sep-10 11:57
sitebuilderLuc Pattyn12-Sep-10 11:57 
AnswerRe: How to represent this type of data in a c# app? Pin
Keith Barrow12-Sep-10 12:04
professionalKeith Barrow12-Sep-10 12:04 
AnswerRe: How to represent this type of data in a c# app? Pin
PIEBALDconsult12-Sep-10 12:36
mvePIEBALDconsult12-Sep-10 12:36 
GeneralRe: How to represent this type of data in a c# app? Pin
stephen.darling12-Sep-10 16:10
stephen.darling12-Sep-10 16:10 
GeneralRe: How to represent this type of data in a c# app? Pin
PIEBALDconsult12-Sep-10 16:22
mvePIEBALDconsult12-Sep-10 16:22 
QuestionTaking screenshots of PCs on LAN Pin
teknolog12312-Sep-10 8:50
teknolog12312-Sep-10 8:50 
AnswerRe: Taking screenshots of PCs on LAN Pin
OriginalGriff12-Sep-10 9:23
mveOriginalGriff12-Sep-10 9:23 
GeneralRe: Taking screenshots of PCs on LAN Pin
teknolog12312-Sep-10 9:29
teknolog12312-Sep-10 9:29 
GeneralRe: Taking screenshots of PCs on LAN Pin
OriginalGriff12-Sep-10 9:43
mveOriginalGriff12-Sep-10 9:43 
GeneralRe: Taking screenshots of PCs on LAN Pin
Eddy Vluggen12-Sep-10 9:53
professionalEddy Vluggen12-Sep-10 9:53 
AnswerRe: Taking screenshots of PCs on LAN Pin
Luc Pattyn12-Sep-10 9:53
sitebuilderLuc Pattyn12-Sep-10 9:53 
GeneralRe: Taking screenshots of PCs on LAN Pin
teknolog12312-Sep-10 10:04
teknolog12312-Sep-10 10:04 
GeneralRe: Taking screenshots of PCs on LAN Pin
Luc Pattyn12-Sep-10 10:12
sitebuilderLuc Pattyn12-Sep-10 10:12 
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 

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.