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

  • Thread starter Thread starter Terry
  • Start date Start date
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,
 
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.
 
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.
 
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?
 
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?
 
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
 
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
 
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,
 
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,
 
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
 
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
 
Back
Top