screen saver

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

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

751 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