Results 1 to 3 of 3

Thread: Bitblt to other forms

  1. #1
    sql_lall
    Guest

    Question Bitblt to other forms

    I have a problem (actually, it's really two)
    I am trying to bitblt pictures from one from to another. Is this possible, and if so does this mean you have to include stuff like "Form2.picture1.hdc"???
    Also, when I try to Bitblt any pictures that aren't visible (or out of screen, I can't copy all of them. Is there a way to fix this???

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    To BitBlt from one form to another you've to specify the full "path" to the Picturebox, so ;

    Blit from ; Form1.Picture1.hDc
    Blit to ; Form2.Picture1.hDc


    Regarding blitting images that arent visible etc, you should use memory DCs instead really
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Try setting the AutoRedraw on those "invisible" pics to true.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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