screen saver

Posted on 1998-12-24
Last Modified: 2010-05-03
How to use vb to create the screen saver
Question by:tanc02

Expert Comment

ID: 1452418

Expert Comment

ID: 1452419
There are some excellent source code samples at  The sample for VB5 also includes the correct method for implementing the Windows screen saver password with a Visual Basic screen saver.

Accepted Solution

Fantym earned 50 total points
ID: 1452420
Ok, There are a few steps to creating a screen saver in VB.

First, Make a Standard EXE

Second, Give This Thing Two Forms.

Third, Now for some code:

-----------------------Cut Here--------------------------------
   Private Sub Form_Load()
      if app.PrevInstance then
      End if
      if ucase(Command$) = "/C" then
      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.


Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question