Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
GeneralRe: get the file type of a file Pin
Dave Kreskowiak5-Apr-10 10:19
mveDave Kreskowiak5-Apr-10 10:19 
GeneralRe: get the file type of a file Pin
PIEBALDconsult5-Apr-10 12:02
mvePIEBALDconsult5-Apr-10 12:02 
AnswerRe: get the file type of a file Pin
harold aptroot5-Apr-10 5:11
harold aptroot5-Apr-10 5:11 
GeneralRe: get the file type of a file Pin
PIEBALDconsult5-Apr-10 9:29
mvePIEBALDconsult5-Apr-10 9:29 
GeneralRe: get the file type of a file Pin
harold aptroot5-Apr-10 12:35
harold aptroot5-Apr-10 12:35 
AnswerRe: get the file type of a file Pin
AspDotNetDev5-Apr-10 11:40
protectorAspDotNetDev5-Apr-10 11:40 
QuestionIs there any lnk parser in C#? Pin
newcoder19995-Apr-10 4:07
newcoder19995-Apr-10 4:07 
QuestionWhite Flicker When Observing an Application Using Double Buffer Over RDP Pin
Catfish5405-Apr-10 3:33
Catfish5405-Apr-10 3:33 
I use .Net version 2.0. I recently implemented double buffering in an animation-heavy aspect of my application--instead of drawing directly to the screen I copy the screen to a Bitmap, use a graphics object to draw on the bitmap, and copy the bitmap back to the screen. It has made the animation faster and smoother. The code looks like this:



Bitmap offScreenBmp;
Graphics offScreenDC;
offScreenBmp = new Bitmap(this.Width, this.Height);
offScreenDC = Graphics.FromImage(offScreenBmp);

// I do drawing in offScreenDC

// I do drawing in offScreenDC

// I do drawing in offScreenDC

Graphics clientDC = this.CreateGraphics();
clientDC.DrawImage(offScreenBmp, 0, 0);



It works perfectly in most situations. However, if I use remote desktop to access a computer on which my application is running (which I often do) I notice that there is this awful white flicker that happens every time I copy my bitmap to the screen. The flicker occurs wherever my bitmap has been changed by its Graphics, and I assume it's some sort of clearing the screen action that happens before every copy, and it just happens too quickly for me to see when I'm not using RDP.

Does anyone know how to avoid this or turn it off? I would really like to keep using this new technique.
QuestionFileSystemWatcher HELP PLEASE !! Pin
Rikq4-Apr-10 21:21
Rikq4-Apr-10 21:21 
AnswerRe: FileSystemWatcher HELP PLEASE !! Pin
OriginalGriff4-Apr-10 21:54
mveOriginalGriff4-Apr-10 21:54 
AnswerRe: FileSystemWatcher HELP PLEASE !! Pin
FyreWyrm5-Apr-10 16:12
FyreWyrm5-Apr-10 16:12 
QuestionHow to send Email in C# through the Exchange Server? Pin
ravis194-Apr-10 21:00
ravis194-Apr-10 21:00 
AnswerRe: How to send Email in C# through the Exchange Server? Pin
Abhinav S4-Apr-10 21:49
Abhinav S4-Apr-10 21:49 
QuestionHow to ATL COM exe(out-of-proc) in .net? Pin
SRKSHOME4-Apr-10 20:32
SRKSHOME4-Apr-10 20:32 
QuestionWindows Service service Account = Network Pin
yadlaprasad4-Apr-10 20:18
yadlaprasad4-Apr-10 20:18 
AnswerRe: Windows Service service Account = Network Pin
Dave Kreskowiak5-Apr-10 1:53
mveDave Kreskowiak5-Apr-10 1:53 
AnswerRe: Windows Service service Account = Network Pin
PIEBALDconsult5-Apr-10 3:38
mvePIEBALDconsult5-Apr-10 3:38 
Questioniteration Pin
adrian5644-Apr-10 19:34
adrian5644-Apr-10 19:34 
AnswerRe: iteration Pin
Abhinav S4-Apr-10 19:51
Abhinav S4-Apr-10 19:51 
GeneralRe: iteration Pin
adrian5644-Apr-10 19:55
adrian5644-Apr-10 19:55 
GeneralRe: iteration Pin
VCsamir4-Apr-10 20:33
VCsamir4-Apr-10 20:33 
GeneralRe: iteration Pin
adrian5645-Apr-10 8:00
adrian5645-Apr-10 8:00 
GeneralRe: iteration Pin
adrian5645-Apr-10 8:01
adrian5645-Apr-10 8:01 
GeneralRe: iteration Pin
adrian5645-Apr-10 19:05
adrian5645-Apr-10 19:05 
AnswerRe: iteration [modified] Pin
PIEBALDconsult7-Apr-10 13:49
mvePIEBALDconsult7-Apr-10 13:49 

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.