Visual Basic 4.0 16/32 Capture Routines for .Net?

T

Terry

Does anybody know if somebody has made available a .Net version of these
routines?
I just don't have the time right now to figure out how to do it myself. I
know that there is a PrintForm component in the Visual Power Packs, but it
does not allow for scalling the print to the page or for just pasting the
image to the clipboard.
TIA,
 
H

Herfried K. Wagner [MVP]

Terry said:
Does anybody know if somebody has made available a .Net version of these
routines?
I just don't have the time right now to figure out how to do it myself. I
know that there is a PrintForm component in the Visual Power Packs, but it
does not allow for scalling the print to the page or for just pasting the
image to the clipboard.

If you have obtained the bitmap you can draw it onto a 'PrintDocument' using
a custom scale.
 
H

Herfried K. Wagner [MVP]

Terry said:
Does anybody know if somebody has made available a .Net version of these
routines?
I just don't have the time right now to figure out how to do it myself. I
know that there is a PrintForm component in the Visual Power Packs, but it
does not allow for scalling the print to the page or for just pasting the
image to the clipboard.

If you have obtained the bitmap you can draw it onto a 'PrintDocument' using
a custom scale.
 
T

Terry

Thanks Herfried,
Part of the function of the routines was to be able to capture screen,
window or client area. Is there a new way to do that or does one still need
to use the Win32 API?
 
T

Terry

Thanks Herfried,
Part of the function of the routines was to be able to capture screen,
window or client area. Is there a new way to do that or does one still need
to use the Win32 API?
 
A

Armin Zingler

Terry said:
Thanks Herfried,
Part of the function of the routines was to be able to capture
screen, window or client area. Is there a new way to do that or does
one still need to use the Win32 API?

System.Drawing.Graphics.CopyFromScreen


Armin
 
A

Armin Zingler

Terry said:
Thanks Herfried,
Part of the function of the routines was to be able to capture
screen, window or client area. Is there a new way to do that or does
one still need to use the Win32 API?

System.Drawing.Graphics.CopyFromScreen


Armin
 
T

Terry

Thanks Armin,
I now haver it working. One problem though, the drop down menu is always
there! I tried doing a ...HideDropDown() call before the capture, but it is
still there. Maybe a threading problem? Any suggestions?
TIA,
 
T

Terry

Thanks Armin,
I now haver it working. One problem though, the drop down menu is always
there! I tried doing a ...HideDropDown() call before the capture, but it is
still there. Maybe a threading problem? Any suggestions?
TIA,
 
A

Armin Zingler

Terry said:
Thanks Armin,
I now haver it working. One problem though, the drop down menu is
always there!

Which drop down menu?
I tried doing a ...HideDropDown() call before the
capture, but it is still there.

Doesn't it close or is it still visible on the screen shot only?
Maybe a threading problem?

How can I know?
Any
suggestions?

I can only guess here: You are chosing an item from whatever kind of drop
down menu/list? In the click event, you're creating the screenshot? You
could force the repaint in your own application but you never know what's
underneath, therefore it wouldn't be a good suggestion. Well, "WYSIWYG"! You
can delay the screenshot by 500ms (by using a Timer) but, as a principle,
there's no guarantee that everything looks like you want it 500ms later.
It's a snapshot.


Armin
 
A

Armin Zingler

Terry said:
Thanks Armin,
I now haver it working. One problem though, the drop down menu is
always there!

Which drop down menu?
I tried doing a ...HideDropDown() call before the
capture, but it is still there.

Doesn't it close or is it still visible on the screen shot only?
Maybe a threading problem?

How can I know?
Any
suggestions?

I can only guess here: You are chosing an item from whatever kind of drop
down menu/list? In the click event, you're creating the screenshot? You
could force the repaint in your own application but you never know what's
underneath, therefore it wouldn't be a good suggestion. Well, "WYSIWYG"! You
can delay the screenshot by 500ms (by using a Timer) but, as a principle,
there's no guarantee that everything looks like you want it 500ms later.
It's a snapshot.


Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top