Solved

screen saver

Posted on 1998-12-24
3
330 Views
Last Modified: 2010-05-03
How to use vb to create the screen saver
0
Comment
Question by:tanc02
[X]
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
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month5 days, 19 hours left to enroll

627 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