Solved

VB5 Screen Saver Password and Settings Access

Posted on 1998-07-20
1
130 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

808 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