CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Posts
    2

    Log user out without keypress in VB6

    Hello all,

    I would like to incorporate into my program a routine such that if a user stays for some time without pressing a key, then s/he is logged out of the system.
    I would be very grateful if I could be assisted in this way.
    Thanks

  2. #2
    Join Date
    Mar 2005
    Posts
    226

    Re: Log user out without keypress in VB6

    Not sure if you can do it a single exe since VB6 is single threaded. Because of this, timer controls can be problem. I would setup some kind of timer and every time it fires, check a keypress dirty flag. If that flag is not set, log them off. It it is set, clear it.

  3. #3
    Join Date
    Jan 2004
    Location
    San Diego
    Posts
    148

    Re: Log user out without keypress in VB6

    This thread asks (and has answered) a similar question and may be of some use to you, Owoahene.
    Death is life's special way of telling you you're fired.

    For I do not seek to understand in order to believe, but I believe in order to understand. For I believe this: unless I believe, I will not understand. - Anselm of Canterbury (1033–1109)

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

Featured