Screen Saver

I am a beginner at VB and I am trying to make a very simple screen saver in VB 5.0.  I can make a form and save it as an .Scr OK, but when I go to the ‘Display’ menu in the Control Panel and click on ‘Preview’ it opens up too many forms and it does not display it in the little monitor screen provided.  

Many people have given me files containing code but they are no help to me at all because there is so much other rubbish with it I am unsure what I am doing.  Can anyone please give me the code on screen to sort this problem out.

I have not included a sub main with a .bas file which could be where I am going wrong?  Here is what I have so far….


Form Properties

Caption = ""
Start Up Position = 2 Maximum
Clip Controls = false
Show in Taskbar = false

Code

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, _
         X As Single, Y As Single)
         Static count As Integer
         If count > 2 Then
            End
         Else
            count = count + 1
     End If
End Sub

Thanks
LVL 3
SirNickAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

matrix717Commented:
Go to file menu, then select like if you where copiling it as .exe but in the name put the name but with .Scr like this

myscreensaver.scr

Then copile...

When the file is ready move it to the windows\system menu so that it appear with the others screensaver
0
SirNickAuthor Commented:
I am sorry that I have rejected your answer but I already know how to save it as a .SCR.  

The problem I have got is that once I have installed the screen saver I cannot get it to play in the monitor window provided in 'Display' option in the Control Panel when the 'Preview' button is pressed.

Thanks Anyway
0
mcriderCommented:
First, read the following microsoft Article:

HOWTO: Create a Screen Saver in Visual Basic
http://support.microsoft.com/support/kb/articles/q146/9/07.asp?LNG=ENG&SA=MSDN 

It says VB4, but the principles are the same.

Your program will have to handle command line options for 4 options:

   /S : Run normally, or in demo mode.

   /C : Open Configuration window.
 
   /A : Change the password.
 
   /P : Run in the Preview Window

You're really interrested in the /P option.  There is a full example of a screensaver at: http://www.spnc.demon.co.uk/vb/vbsaver.htm 


Hope this helps!


Cheers!

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SirNickAuthor Commented:
I am sorry that I have taken so long to answer.  
The information I got from the links you included in your answer were fine although it did take me a while to pick the code out I need.  

Many Thanks
0
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.