Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6322209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:17:16+00:00 2026-05-24T16:17:16+00:00

I’ve been working on a till/cash-register application. We need to prevent the users from

  • 0

I’ve been working on a till/cash-register application. We need to prevent the users from quitting the application by using Alt + Esc, Ctrl + Alt + Del or Alt + Tab etc combinations and we’ll be providing a separate custom hotkey for quiting. The application will be full-screen and without any close button. I’ve already done the full screen no cross button part but stuck with disabling the low system level hotkeys. How do I do this in C#? Any help or alternative methods (ie. setting up user group permissions to prevent star menu/task manager or any other alternative to achieve the goal) are appreciated.

Edit: We’re using WinForms. The application will run in Windows XP/Vista/7.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:17:17+00:00Added an answer on May 24, 2026 at 4:17 pm

    There is no direct way to escape from the standard behavior of Windows. A user of Windows must have the possibility to kill applications. If the application doesn’t obey, the system will force-kill the application.

    However, there are a few tricks, often employed by virus-writers, here are some (not extensive):

    • Disallowing all system hotkeys is relatively trivial, but Ctrl-Alt-Del is not amongst them. Look up this excellent code-project article with a sample application.
    • Build a DLL and inject yourself in other processes that are vital to the system. Easy to do, but make sure you port your application from .NET to standalone C++ or other language, you don’t want system processes to be dependent on the version of .NET that you load.
    • In lieu of the dll-suggestion, you can create something like a shell extension with a library like this one which allows you to continue using .NET. It’s not meant for this kind of thing, but it forces the user to kill explorer.exe to get rid of your application.
    • Create a service that can interact with the desktop. Restrict the rights of the service by normal means, which essentially has the same effect of disallowing users to kill your app through the ways you mention.
    • Obviously, you should cancel any WM_CLOSE, WM_EXIT or WM_KILL message and simply continue “living”.
    • Use a sentinel application, this is what most virus scanners use: if you kill one process, the sentinel will restart it. If you kill the sentinel, it should be restarted by the main app. Bad behavior, but works.

    But, general advice: don’t do this. Allow your users to potentially kill the program if needed, otherwise it will be very hard to do any maintenance. The only “supported” way is through services, where you can allow special users to stop your service and it cannot be stopped through task manager.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have thousands of HTML files to process using Groovy/Java and I need to
I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.