How to use with vb.net

How to use windows API draw a icon in the picturebox control.
Below code ?
declare private Drawicon .........
private PictureBox1_OnPaint(Byval s as Object,Byval e as PainteventArgs) handles PictureBox1.onpaint
Dim Icon as long
...
DrawIcon(e.Graphics.GetHdc().Toint64,0,0,Icon)
....
End Sub
What is wrong? None any change in Picturebox control.Why invalid??

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories