migrating fro vb6 form.hDC RRS feed

  • Question

  • Hi...

    upgrading my vb6 programs to  visual studio 8..opening vbp file and select migrate dialogs

    i get 22 errors...this is the main one

    Public Handle As Long

            'UPGRADE_ISSUE: Form property cardTable.hDC was not upgraded.'

          Handle = cardTable.hDC

    it seems form.hdc no more supported

    in the program i use "Handle" value to draw cards on the form...an example

     cdtDraw Handle, offsEO, 30, 53, Format, vbWhite

    how to change the code to obtain the handle  ?

    thanks in advance

    Friday, May 24, 2019 1:43 PM

All replies