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??