|
-
Mar 6th, 2002, 01:43 AM
#1
Thread Starter
Frenzied Member
form transition and BitBlt problem
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
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Mar 6th, 2002, 05:59 AM
#2
Frenzied Member
Heh that's weird, can you post the code here so I have a look at it?
-
Mar 6th, 2002, 08:24 AM
#3
Thread Starter
Frenzied Member
never mind. I've moved past that now.
But this is what I'm stuck on. I used BitBlt to get the image onto the Picture box. Now I want to save the image that is now in the picturebox as a bitmap.
When I use SavePicture on the .picture , it saves the picture that was originally in picture1, not what I BitBlt to the box. So how can I either:
Save what is now painted into picture1 as a bitmap
or
make this bitblt picture in the picturebox become the .picture for this box.
either?
Thanks
Gary
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
-
Mar 6th, 2002, 08:31 AM
#4
Thread Starter
Frenzied Member
Never mind on that too.
Picture1.Image, not Picture1.Picture
Okay, let me get some more work done before I post a problem again
Wen Gang, Programmer
VB6, QB, HTML, ASP, VBScript, Visual C++, Java
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|