Link to home
Start Free TrialLog in
Avatar of StuartB_99
StuartB_99

asked on

Screen Saver on a form !!!!!

I have a screen saver ie MyScreenSaver.Scr. I also have a form in my application ie MyAppForm, on this form I have a large panel, and in this large panel I want to show the above screensaver, ..

Can this be done and if so, how do I do it ????

Thanx in advance

Stu
ASKER CERTIFIED SOLUTION
Avatar of inthe
inthe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PROGRAMMING030999
PROGRAMMING030999

Hi Stu,
If your Screensaver supports the Preview, you could use
something like:

procedure TForm1.Button1Click(Sender: TObject);
begin

screensaver := 'c:\win95\system\Flying Windows.scr /P' + InttoStr(Panel1.Handle );

WinExec(pchar(screensaver), SW_SHOWNormal);
end;

Michael

Avatar of StuartB_99

ASKER

Thanx very much,...

Stuart
Cheers Michael, but Barry just pipped you to the post, but a huge thankyou to you both..

Stuart

SBond@Costcutter.Com