Results 1 to 5 of 5

Thread: a few security questions

  1. #1

    Thread Starter
    Lively Member VB Begginer Kid's Avatar
    Join Date
    Jul 2001
    Location
    home
    Posts
    127

    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


  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    set the PasswordChar property to '*'

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Matthew Gates
    Guest
    To disable/enable ctrl-alt-del, use this code.


    VB Code:
    1. Private Declare Function SystemParametersInfo Lib _
    2. "user32" Alias "SystemParametersInfoA" (ByVal uAction _
    3. As Long, ByVal uParam As Long, ByVal lpvParam As Any, _
    4. ByVal fuWinIni As Long) As Long      
    5.  
    6. Sub DisableCtrlAltDelete(bDisabled As Boolean)
    7.     Dim X As Long
    8.     X = SystemParametersInfo(97, bDisabled, CStr(1), 0)
    9. End Sub
    10.  
    11. Private Sub Command1_Click()
    12.     'Disable
    13.     Call DisableCtrlAltDelete(True)
    14. End Sub
    15.  
    16. Private Sub Command2_Click()
    17.     'Enable
    18.     Call DisableCtrlAltDelete(False)
    19. End Sub

  4. #4
    Aurilus
    Guest
    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

  5. #5

    Thread Starter
    Lively Member VB Begginer Kid's Avatar
    Join Date
    Jul 2001
    Location
    home
    Posts
    127
    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
  •  



Click Here to Expand Forum to Full Width