Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
GeneralRe: Docking panel pushes another... Pin
Heath Stewart1-Mar-04 4:18
protectorHeath Stewart1-Mar-04 4:18 
GeneralRe: Docking panel pushes another... Pin
Weiye Chen1-Mar-04 4:57
Weiye Chen1-Mar-04 4:57 
GeneralDrawing image from a control Pin
mhmoud rawas1-Mar-04 0:56
mhmoud rawas1-Mar-04 0:56 
GeneralRe: Drawing image from a control Pin
Weiye Chen1-Mar-04 1:47
Weiye Chen1-Mar-04 1:47 
GeneralRe: Drawing image from a control Pin
mhmoud rawas1-Mar-04 21:33
mhmoud rawas1-Mar-04 21:33 
GeneralRe: Drawing image from a control Pin
Heath Stewart1-Mar-04 3:54
protectorHeath Stewart1-Mar-04 3:54 
GeneralRe: Drawing image from a control Pin
mhmoud rawas1-Mar-04 21:32
mhmoud rawas1-Mar-04 21:32 
GeneralRe: Drawing image from a control Pin
Heath Stewart2-Mar-04 1:20
protectorHeath Stewart2-Mar-04 1:20 
GDI+ still uses handles. As the first reply mentioned, you can use Graphics.FromHwnd. Since you're not going to find a method that equates to BitBlt, you're most likely going to have to get an IntPtr representing the HDC from Graphics.GetHdc (call Graphics.ReleaseHdc when finished with the HDC) anyway. You could also skip this overhead and P/Invoke the GetDC API, passing Control.Handle that is the HWND. This type of solution is very common. Handles are still very much used in the implementations of every Windows Forms control, and many other classes (like ImageList).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Drawing image from a control Pin
mhmoud rawas2-Mar-04 17:32
mhmoud rawas2-Mar-04 17:32 
Generalunresolved token Pin
mohammadQ29-Feb-04 23:52
mohammadQ29-Feb-04 23:52 
GeneralRe: unresolved token Pin
Heath Stewart1-Mar-04 3:52
protectorHeath Stewart1-Mar-04 3:52 
GeneralHooking Keyboard Pin
aliarifpk29-Feb-04 23:13
aliarifpk29-Feb-04 23:13 
GeneralRe: Hooking Keyboard Pin
Mazdak29-Feb-04 23:23
Mazdak29-Feb-04 23:23 
GeneralRe: Hooking Keyboard Pin
aliarifpk29-Feb-04 23:37
aliarifpk29-Feb-04 23:37 
GeneralRe: Hooking Keyboard Pin
Mazdak29-Feb-04 23:40
Mazdak29-Feb-04 23:40 
GeneralRe: Hooking Keyboard Pin
aliarifpk29-Feb-04 23:46
aliarifpk29-Feb-04 23:46 
GeneralRe: Hooking Keyboard Pin
Dave Kreskowiak1-Mar-04 6:53
mveDave Kreskowiak1-Mar-04 6:53 
GeneralRe: Hooking Keyboard Pin
aliarifpk1-Mar-04 20:38
aliarifpk1-Mar-04 20:38 
GeneralRe: Hooking Keyboard Pin
Dave Kreskowiak2-Mar-04 4:16
mveDave Kreskowiak2-Mar-04 4:16 
GeneralRe: Hooking Keyboard Pin
Mazdak29-Feb-04 23:42
Mazdak29-Feb-04 23:42 
GeneralUserControl in VisualBasic 6.0 Pin
god4k29-Feb-04 20:29
god4k29-Feb-04 20:29 
GeneralRe: UserControl in VisualBasic 6.0 Pin
Mazdak29-Feb-04 21:00
Mazdak29-Feb-04 21:00 
GeneralInserting thread in single process Pin
azusakt29-Feb-04 20:26
azusakt29-Feb-04 20:26 
GeneralRe: Inserting thread in single process Pin
Stefan Troschuetz29-Feb-04 21:27
Stefan Troschuetz29-Feb-04 21:27 
GeneralRe: Inserting thread in single process Pin
azusakt29-Feb-04 22:55
azusakt29-Feb-04 22:55 

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.