Solved

VB5 Screen Saver Password and Settings Access

Posted on 1998-07-20
1
128 Views
Last Modified: 2010-05-03
How do you access or write a settings dialog box for a screensaver written in VB5. Is there an api function for this and if not how do I write the code to make the dialog box appear when the 'Settings' button is pressed in the Desktop 'Properties' dialog box.
0
Comment
Question by:locoanh
1 Comment
 
LVL 7

Accepted Solution

by:
tward earned 100 total points
ID: 1466242
Put this in the main form of your screen saver:

Private Sub Form_Load()

  Dim Provider As String
 
  Select Case UCase(Left(Command, 2))
 
        Case "/A"
                 Provider = "SCRSAVE" & Chr(0)
                 Call PwdChangePassword(Provider, Main_Form.hWnd, 0)
                 End
       
        Case "/P"
                 Unload Me
                 Exit Sub
                 
        Case "/C"
                         frmSetup.Show 1
                         Exit Sub
                 
        Case "/S"
 
  End Select
 
  InCleanExit = False
 
End Sub

the /C passed means the user hit the setup button so you need to display your setup form.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

762 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

20 Experts available now in Live!

Get 1:1 Help Now