I'm trying to add the hDC attribute onto a custom picturebox control so I can use bitblt with it.

This picturebox works perfectly fine, here's what I'm using for the hDC code.


==================================
==================================


Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long

Public Property Let WritehDC(hDestDC1 As Long, X1 As Long, Y1 As Long, nWidth1 As Long, nHeight1 As Long, hSrcDC1 As Long, xSrc As Long, ySrc As Long, dwRop1 As Long)

BitBlt PctBackground.hDC, X1, Y1, nWidth1, nHeight1, hSrcDC1, xsrc1, ysrc1, dwRop1


End Property


==================================
==================================



When I try to use the WritehDC command in a form, it says "Invalid Use of Property." Can anyone help me out here?