Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB5 Screen Saver Password and Settings Access

Posted on 1998-07-20
1
Medium Priority
?
135 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 300 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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

618 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