Results 1 to 17 of 17

Thread: Stop user from pressing CTRL + BREAK

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Contributor
    Joined
    Jul 2018
    Posts
    174
    Location

    Stop user from pressing CTRL + BREAK

    Hi, I have a login script that doesn't allow the user to close the userform, however the user can still use CTRL + BREAK to stop the login script and there is NO "login".

    I have googled and found that I should try to trap error 18 and/or disable the ESC key.

    Is there any way to use Application.Username if CTRL + BREAK is pressed?

    Psuedo code:

    If CTRL + BREAK is pressed then
    Username = Application.Username
    Last edited by waimea; 01-07-2019 at 09:06 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •