Solved

screen saver

Posted on 1998-12-24
3
326 Views
Last Modified: 2010-05-03
How to use vb to create the screen saver
0
Comment
Question by:tanc02
3 Comments
 
LVL 4

Expert Comment

by:mcix
ID: 1452418
0
 
LVL 1

Expert Comment

by:delmar
ID: 1452419
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
 

Accepted Solution

by:
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.
        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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now