PC Review


Reply
Thread Tools Rate Thread

Drawing on screen

 
 
Hai Ly Hoang
Guest
Posts: n/a
 
      17th Feb 2005
Hi,
I want to draw directly on to the screen. I think i should get the Graphics
object of the screen. It's easy to get do it in C++ (by GetWindowDC(NULL)).
But how to do that in C# ?

Thanks


 
Reply With Quote
 
 
 
 
Jeff Louie
Guest
Posts: n/a
 
      17th Feb 2005
Graphics g= Graphics.FromHwnd(this.Handle);

You can download a working gdi+ application here:
http://www.geocities.com/jeff_louie/OOP/oop19.htm

Regards,
Jeff
>I want to draw directly on to the screen. I think i should get the

Graphics object of the screen. It's easy to get do it in C++ (by
GetWindowDC(NULL)).But how to do that in C# ?<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Publicjoe
Guest
Posts: n/a
 
      17th Feb 2005
Hi,

You need to use GDI+

I have staterted my own beginners guide to GDI+ at
http://www.publicjoe.f9.co.uk/csharp/csharp21.html which talks through doing
this.

I also have a few articles aimed at beginners on my articles page found at
http://www.publicjoe.f9.co.uk/csharp.../articles.html

Also check out the chapters in my ebook page (link below)

Hope this helps

Publicjoe

C# Tutorial at http://www.publicjoe.f9.co.uk/csharp/tut.html
C# Ebook at http://www.publicjoe.f9.co.uk/csharp/samples/ebook.html
VB Tutorial at http://www.publicjoe.f9.co.uk/vbnet/vbnet.html
VB Ebook at http://www.publicjoe.f9.co.uk/vbnet/samples/ebook.html
Mirrors at http://www.dowhileloop.com/publicjoe/ and
http://www.publicjoe.justbe.com/

Useful Articles at http://www.madsally.co.uk



"Hai Ly Hoang" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
> I want to draw directly on to the screen. I think i should get the

Graphics
> object of the screen. It's easy to get do it in C++ (by

GetWindowDC(NULL)).
> But how to do that in C# ?
>
> Thanks
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drawing an Image at Full Screen RP Microsoft Dot NET Compact Framework 2 4th Mar 2008 01:54 PM
Error when drawing line on second screen =?Utf-8?B?UGhpbCBTdGFwbGV0b24=?= Microsoft Dot NET Framework Forms 0 15th Nov 2007 11:49 AM
VSTO Powerpoint screen drawing issue =?Utf-8?B?RGVuaXM=?= Microsoft Powerpoint 6 28th Apr 2007 06:48 PM
Stopping the screen drawing =?Utf-8?B?UnVzc2VsbCBMdWNhcw==?= Microsoft Excel Programming 1 28th Sep 2004 06:23 PM
Stopping the screen drawing =?Utf-8?B?UnVzc2VsbCBMdWNhcw==?= Microsoft Excel Programming 2 28th Sep 2004 02:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:16 PM.