Results 1 to 9 of 9

Thread: password protect item in systray?[Resolved]

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    651

    Resolved password protect item in systray?[Resolved]

    I am trying to find or come up with some to code password protect item in systray.
    Any ideas or suggestions?
    Anyone have or can come up with such a code?
    Thanx in advance!
    Last edited by planethax; Jun 23rd, 2005 at 12:06 AM.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: password protect item in systray?

    Will it be your app? You could try to ask a password if your app is being maximized from the SysTray...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    651

    Re: password protect item in systray?

    yes it will be my app, Its a firewall/port blocking app.
    I need to block msn on all the pc's at work

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: password protect item in systray?

    Then try my suggestion... What is your means of showing your app from the systray? Doubli click, single click, right click or what? And in what ways do you want to protect it?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    651

    Re: password protect item in systray?

    VB Code:
    1. Private Sub SysTray_MouseDblClick(Button As Integer, Id As Long)
    2. mdlFirewall.Execute True
    3. frmMain.Show
    4. End Sub

    the app starts in systray, this is the code used to show the main frm,
    but I want the user to have to input a password before it shows?

  6. #6
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: password protect item in systray?

    You could use an algorithm like this...

    VB Code:
    1. Private Sub SysTray_MouseDblClick(Button As Integer, Id As Long)
    2.     Dim Password As String
    3.     Password = InputBox("Input your password", "Password")
    4.     If Password = "True" Then
    5.         mdlFirewall.Execute True
    6.         frmMain.Show
    7.     End If
    8. End Sub
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    651

    Re: password protect item in systray?

    Quote Originally Posted by dee-u
    You could use an algorithm like this...

    VB Code:
    1. Private Sub SysTray_MouseDblClick(Button As Integer, Id As Long)
    2.     Dim Password As String
    3.     Password = InputBox("Input your password", "Password")
    4.     If Password = "True" Then
    5.         mdlFirewall.Execute True
    6.         frmMain.Show
    7.     End If
    8. End Sub
    I am typing the password "true" in but nothing happens?
    I am so lost with this thing lol

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: password protect item in systray?

    It's case sensitive, "True".

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    651

    Re: password protect item in systray?

    Quote Originally Posted by dglienna
    It's case sensitive, "True".
    DOOOH!! thank you both

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