Results 1 to 3 of 3

Thread: Using hdc in 2003?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    2

    Using hdc in 2003?

    I have recently migrated from VB6 to VB.NET, I was using this line of code:
    VB Code:
    1. Call BitBlt(frmMain.picSelect.hdc, 0, 0, PIC_X, PIC_Y, frmMain.picBackSelect.hdc, EditorTileX * PIC_X, EditorTileY * PIC_Y, SRCCOPY)
    But now the hdc is not a member of the picturebox.
    Can anyone help me on this one?

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    2

    Re: Using hdc in 2003?

    Sorry, I have two pcs and this one actually has Visual Studio.NET 2005 Express on it.
    I also mean to say that the vb error is that HDC is not a member of the picture box, so how will I use it now to get the same effect?

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Using hdc in 2003?

    I would guess that what you want is the Handle property, although I couldn't be sure that you don't need a reference to the Image the PictureBox contains.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width