screen saver

How to use vb to create the screen saver
LVL 1
tanc02Asked:
Who is Participating?
 
FantymConnect With a Mentor Commented:
Ok, There are a few steps to creating a screen saver in VB.

First, Make a Standard EXE

Second, Give This Thing Two Forms.
        frmMain
        frmSettings

Third, Now for some code:

-----------------------Cut Here--------------------------------
   Private Sub Form_Load()
      if app.PrevInstance then
         End
      End if
      if ucase(Command$) = "/C" then
        frmMain.hide
        frmSettings.show
      end if
   End Sub    
   
-----------------------Cut Here--------------------------------

Four, Put a timer or something in frmMain and some checking for
      the mouse moving and the keys being pressed. Note: The
      mouse move and key press events fire as soon as the
      program runs so you need to be careful of that.

Five, compile and then rename the .EXE to .SCR

That should be it.

0
 
mcixCommented:
0
 
delmarCommented:
There are some excellent source code samples at http://www.arcatapet.com/vb.html.  The sample for VB5 also includes the correct method for implementing the Windows screen saver password with a Visual Basic screen saver.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.