DrawIcon - Fromhandler?

korvax

New member
Joined
Jun 16, 2003
Messages
3
He
I want to draw a windows icon in a picturebox by using the windows handler or hWnd value.

for ex.
I want to draw the Foreground Window:s icon in one of my pictureboxes in my form.

Can anyone help me?

In Vb that is..
 
Last edited by a moderator:
Not VB but also not hard to translate:
Bitmap B= (Bitmap)Icon.FromHandle(this.Icon.Handle).ToBitmap();
 
Back
Top