|
-
Jul 17th, 2001, 10:23 PM
#1
Thread Starter
Lively Member
a few security questions
is there a way to get rid of the ctrl alt del function for a security program (its a app i'm working on to lock your desktop)?
how do u get a text box to display astricks so someone cannot see a password?
how would you have a password dialog box appear only the first time u ren the app and then save it to a file?
Last edited by VB Begginer Kid; Jul 17th, 2001 at 10:58 PM.
I'm a beginner.
------------------------------------------------
Your impossible ego ***** is like a
Megalomaniacal tab on my tongue
You *****in' touch me I will rip you apart

-
Jul 17th, 2001, 10:34 PM
#2
set the PasswordChar property to '*'
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 17th, 2001, 11:01 PM
#3
To disable/enable ctrl-alt-del, use this code.
VB Code:
Private Declare Function SystemParametersInfo Lib _
"user32" Alias "SystemParametersInfoA" (ByVal uAction _
As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
ByVal fuWinIni As Long) As Long
Sub DisableCtrlAltDelete(bDisabled As Boolean)
Dim X As Long
X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
Private Sub Command1_Click()
'Disable
Call DisableCtrlAltDelete(True)
End Sub
Private Sub Command2_Click()
'Enable
Call DisableCtrlAltDelete(False)
End Sub
-
Jul 17th, 2001, 11:04 PM
#4
Yep, to make asterixes appear in a text box when the user types in it, set the PasswordChar property of the textbox to "*" or whatever character you want to use instead.
What do you mean have the password dialog box appear only the first time you run the app? First time you run it that day or first time you ever run it? If it is first time you ever run it, why not save the password (or whatever) to the registry, eg.
SaveSetting(App.title,"Password",txtPassword.Text)
and then check for it each time the program is run
ThePassword = GetSetting(App.title,"Password","")
If Thepassword = "" then ' <-- IE, if the password does not exist
' show your password form
End If
If you want to stop Ctrl-Alt-Delete, you can trick windows into thinking your application is a screensaver. More info can be found here: http://vb-world.net/api/tip518.html
Hope this helps
- Aurilus
-
Jul 17th, 2001, 11:31 PM
#5
Thread Starter
Lively Member
Originally posted by Aurilus
If you want to stop Ctrl-Alt-Delete, you can trick windows into thinking your application is a screensaver. More info can be found here: http://vb-world.net/api/tip518.html
will this work with windows 2k?
I'm a beginner.
------------------------------------------------
Your impossible ego ***** is like a
Megalomaniacal tab on my tongue
You *****in' touch me I will rip you apart

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|