this is the API call:
which i need to find an equivelent for vb.net.Code:Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As IntPtr, _ ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, _ ByVal nHeight As Long, ByVal hSrcDC As IntPtr, ByVal xSrc As Long, _ ByVal ySrc As Long, ByVal dwRop As Long) As Long Public Const SRCCOPY = &HCC0020 Public Const SRCPAINT = &HEE0086 Public Const SRCAND = &H8800C6
as you may have guessed, the is Form1 , with Picture1 as a picture box in it.Code:RetVal = BitBlt(Form1.Picture1.hDC, XVal_To, YVal_To, Width, Height, Form1.Picture1.hDC, XVal_From, YVal_From, SRCAND)
the property "hDC" in picture1.hDC is removed !!!!!!!!!!
what can i do ???!
well, i tried to use:
is that way right ??Code:Dim HDC1 as IntPtr HDC1=Form1.DefInstance.Picture1.CreatGraphics.GethDC 'bla bla bla
if it is, y it is not working ???
as i have noticed (although not sure of how accurate this notice is)
the thing draw for a second and is erased immediates (probably after re-painting)
well, that doesnot happen in vb6 !!!!!
anyone can help ????




Reply With Quote