wengang
Mar 6th, 2002, 12:43 AM
hi all.
I'm using BitBlt to copy a piece of Form2 to a picture box control in form2 in the Form_Load event.
The problem is that the program begins with Form1 and no matter what I do, the Bitblt keeps copying its source from those coordinates on Form1
Form2 is not yet visible, but I've even done form2.show and form1.visible = false to make it use form2, also I used as Source DC
SourceDC = GetWindowDC(Form2.hwnd)
What more can I do?
I am using vbSrcCopy. Is that the problem?
ANybody?
thanks
I'm using BitBlt to copy a piece of Form2 to a picture box control in form2 in the Form_Load event.
The problem is that the program begins with Form1 and no matter what I do, the Bitblt keeps copying its source from those coordinates on Form1
Form2 is not yet visible, but I've even done form2.show and form1.visible = false to make it use form2, also I used as Source DC
SourceDC = GetWindowDC(Form2.hwnd)
What more can I do?
I am using vbSrcCopy. Is that the problem?
ANybody?
thanks