I'm making a user control that has a picture property that user can speicify, and I need to be able to create a DC for it so I can use BitBlt etc. How would I go about doing that? I'm using this:

VB Code:
  1. Dim lngDC As Long
  2. lngDC = CreateCompatibleDC(0)
  3. If lngDC > 0 Then
  4.     SelectObject lngDC, m_Picture

or something to that effect, and then using ReleaseDC to free the memory, but it's not working properly. If you need more background on my problem I can give it.