Hi,
The graphics object has a gethdc method. You must manually release
the hdc when you are done with it.
Private Sub Form1_Paint(ByVal sender As Object, ByVal e As
System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim g As Graphics = e.Graphics
Dim hdc As IntPtr = g.GetHdc
' Do something with the hdc
g.ReleaseHdc(hdc)
End Sub
Ken
------------------
"Serdar C." <se*****@interaktif.gen.tr> wrote in message
news:02****************************@phx.gbl...
ok i searched the internet for this api and i found the
usage of getpixel api like this:
getpixel(example.hdc,x,y)
but i cant find any property about this "hdc".. that does
that hdc 's equal in vb.net??? thanx for helping..