Home All Groups Group Topic Archive Search About

Re: How to Use a Screen Saver app within My Application?

Author
25 May 2006 10:26 AM
TCook
Hey Everyone,

Using the following in VB, one can launch a screensaver in a window on a
form:

Shell "sspipes.scr /p " & CStr(Picture1.hWnd)

Once launched, how can the screensaver be terminated programmatically?

Thanks & Regards,

TC

Author
25 May 2006 1:06 PM
Thorsten Albers
TCook <getmyemai***@yahoo.com> schrieb im Beitrag
<uhCLDX#fGHA.3***@TK2MSFTNGP04.phx.gbl>...
> Using the following in VB, one can launch a screensaver in a window on a
> form:
> Shell "sspipes.scr /p " & CStr(Picture1.hWnd)
> Once launched, how can the screensaver be terminated programmatically?

Try to send "Picture1.hWnd" a WM_CLOSE message. Or destroy the PictureBox
"Picture1".

--
----------------------------------------------------------------------
THORSTEN ALBERS                        Universität Freiburg
                                                albers@
                                                       uni-freiburg.de
----------------------------------------------------------------------