Solved

VB5 Screen Saver Password and Settings Access

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…

688 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