Click here to Skip to main content
15,922,145 members
Home / Discussions / C#
   

C#

 
Questionvirtual makeover Pin
samreengr87-Apr-07 10:43
samreengr87-Apr-07 10:43 
QuestionNavigation Control Pin
indyfromoz7-Apr-07 10:25
indyfromoz7-Apr-07 10:25 
QuestionAdding controls dynamically Pin
kkadir7-Apr-07 9:49
kkadir7-Apr-07 9:49 
AnswerRe: Adding controls dynamically Pin
J$7-Apr-07 9:56
J$7-Apr-07 9:56 
GeneralRe: Adding controls dynamically Pin
kkadir7-Apr-07 10:05
kkadir7-Apr-07 10:05 
GeneralRe: Adding controls dynamically Pin
Luc Pattyn7-Apr-07 13:50
sitebuilderLuc Pattyn7-Apr-07 13:50 
GeneralRe: Adding controls dynamically Pin
phantanagu8-Apr-07 22:37
phantanagu8-Apr-07 22:37 
QuestionPaintdesktop Api with back buffer Pin
AndyBob7-Apr-07 9:38
AndyBob7-Apr-07 9:38 
Hi all. I'm trying to use the paintdesktop api call in a c# application. I'm using the following code in the paint event of the form, but this causes a lot of flickering when it draws.

Graphics g = this.CreateGraphics(); // Create compatible graphics object
IntPtr hdc = g.GetHdc(); // Get HDC of graphics
PaintDesktop(hdc); // Draw the system wallpaper
g.ReleaseHdc(); // Release HDC so other drawing can take place
g.DrawImage(Interface, 0, 0); // Draw the interface over wallpaper
g.Dispose(); // Dispose graphics object


I presume that I need to use some form of backbuffering to stop this flickering, however trying to draw the wallpaper with paintdesktop to a system.drawing.bitmap fails. I *think* I would be able to draw it to a bitmap created with the api createbitmap, but don't really know how to use this call or then get a HDC to such a bitmap and haven't been able to find any simple instructions for .net.

Can anyone provide a sample or a link to an *easy* article which explains it, or suggest another way reduce the flickering? Or does anyone have any experience with or links to articles about paintdesktop with .net that they could share?

Thanks!
AnswerRe: Paintdesktop Api with back buffer Pin
Hayder Marzouk7-Apr-07 14:44
Hayder Marzouk7-Apr-07 14:44 
GeneralRe: Paintdesktop Api with back buffer Pin
AndyBob8-Apr-07 8:58
AndyBob8-Apr-07 8:58 
QuestionWho knows how to change font in console? Pin
Zhendalf7-Apr-07 9:01
Zhendalf7-Apr-07 9:01 
AnswerRe: Who knows how to change font in console? Pin
Hayder Marzouk7-Apr-07 15:06
Hayder Marzouk7-Apr-07 15:06 
GeneralRe: Who knows how to change font in console? Pin
Zhendalf8-Apr-07 1:05
Zhendalf8-Apr-07 1:05 
QuestionData binding using checkbox Pin
coolzzzz7-Apr-07 8:10
coolzzzz7-Apr-07 8:10 
AnswerRe: Data binding using checkbox Pin
Hayder Marzouk7-Apr-07 14:55
Hayder Marzouk7-Apr-07 14:55 
QuestionHow can i write some COM server with C# language ? Pin
Yanshof7-Apr-07 6:48
Yanshof7-Apr-07 6:48 
AnswerRe: How can i write some COM server with C# language ? Pin
Sathesh Sakthivel7-Apr-07 7:24
Sathesh Sakthivel7-Apr-07 7:24 
GeneralThanks - but this example is about DLL com - I'm looking for something different Pin
Yanshof7-Apr-07 7:58
Yanshof7-Apr-07 7:58 
Questionhelp Pin
Kiethnt7-Apr-07 4:59
Kiethnt7-Apr-07 4:59 
QuestionHow to add animation to keep the user informed with the activities? Pin
Khoramdin7-Apr-07 3:39
Khoramdin7-Apr-07 3:39 
AnswerRe: How to add animation to keep the user informed with the activities? Pin
Pualee7-Apr-07 7:07
Pualee7-Apr-07 7:07 
GeneralRe: How to add animation to keep the user informed with the activities? Pin
Khoramdin7-Apr-07 9:28
Khoramdin7-Apr-07 9:28 
AnswerRe: How to add animation to keep the user informed with the activities? Pin
William Ten Broek11-Apr-07 22:51
William Ten Broek11-Apr-07 22:51 
Questionundo-redo for listview Pin
mm3107-Apr-07 3:01
mm3107-Apr-07 3:01 
AnswerRe: undo-redo for listview Pin
Scott Dorman7-Apr-07 3:12
professionalScott Dorman7-Apr-07 3:12 

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.