Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

screen saver

Posted on 1998-12-24
3
Medium Priority
?
333 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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

886 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