Solved

VB5 Screen Saver Password and Settings Access

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Protecting vb6 & .Net code Obfuscation 18 213
vbModal 12 74
Sub or Function is not defined 6 59
Visual Basic 6: Code needed for TripleDES Encryption/Decryption 14 95
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

732 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