Home All Groups Group Topic Archive Search About

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

Author
12 May 2009 4:12 PM
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

Author
13 May 2009 1:28 AM
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,
--
Terry


Show quoteHide quote
"Terry" wrote:

> 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
Author
13 May 2009 11:01 AM
Armin Zingler
Terry wrote:
> 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
Author
13 May 2009 12:45 PM
Terry
Thanks Armin,
I used a timer with just a 10 ms interval, and the problem is resolved!
--
Terry


Show quoteHide quote
"Armin Zingler" wrote:

> Terry wrote:
> > 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
>
>