Windows Develop Bookmark and Share   
 index > Windows Forms General > How to get hDC for PictureBox?
 

How to get hDC for PictureBox?

Hi
I want to pass the handle and DC of a picture box to a third party control. These were available in VB6 readily. Now we are porting the application to VB.NET . I am unable to get hDC. 

Please help..

It's a very urgent.

Thanks
Prasanth
MigrationUser 1  Tuesday, February 15, 2005 7:32 AM
Use the GetHdc method of the System.Drawing.Graphics class.  You can get the Graphics object for the PictureBox in its Paint event or by calling CreateGraphics.
MigrationUser 1  Tuesday, February 15, 2005 11:47 AM

You can use google to search for other answers

Custom Search

More Threads

• Minimizing the program
• Parent-Child Forms
• Closing child modal form after calculations in parent form is complete
• Masked textbox cursor
• Will VS.NET 2005 Team System make VSS obsolete?
• event on change on month in MonthCalender
• Form flicker
• Ending a Windows Program
• Module Variables
• Windows Service project - Trying to setup my function inside class