How to lock alt and control key to in c#.net for windpws application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bharathk27
    New Member
    • May 2010
    • 16

    How to lock alt and control key to in c#.net for windpws application

    i am doing cybercafe software. i want to cut the keycombinations and want tab to be worked.

    so only option i got is to disable alt and control key so that every key combinations can be blocked and tab key works.

    can anyone give me an code for above mentioned scenario in windows application in c#.net

    thanks in advance
  • fastestindian
    New Member
    • Aug 2009
    • 74

    #2
    Check if this helps you...
    I am using the C# language for developing the software. How could I disable control-alt-delete buttons so that the user of the program could only use the dropdown menu's Exit option to quit the progra

    Comment

    • bharathk27
      New Member
      • May 2010
      • 16

      #3
      no it doesn't suits my project

      need something else please

      Comment

      • GaryTexmo
        Recognized Expert Top Contributor
        • Jul 2009
        • 1501

        #4
        When I read the link that fastestindian posted I tried googling the problem. It's quite complicated. It looks like you'll have to create an override for a windows dll. Control+Alt+Del ete is a system level thing and it's not easy to interrupt.

        First try this though....


        Perhaps you can just disable the task manager?

        If that doesn't work, the name of the dll you need to look into creating is called "gina.dll".

        Good luck!

        Comment

        • bharathk27
          New Member
          • May 2010
          • 16

          #5
          I tried it
          It doesn't work

          Comment

          • GaryTexmo
            Recognized Expert Top Contributor
            • Jul 2009
            • 1501

            #6
            You tried the registry setting and it didn't work?

            Then you'll have to look into creating your own "gina.dll" I guess.

            Comment

            • bharathk27
              New Member
              • May 2010
              • 16

              #7
              i don't want to lock key combination. i want to lock alt and control if i lock this then keycombination couldn't not work.

              so can you post sample code

              Comment

              • GaryTexmo
                Recognized Expert Top Contributor
                • Jul 2009
                • 1501

                #8
                No, I can't because I don't know how to do it. This is something you'll have to solve on your own. If we can help, we will, but ultimately it's up to you to do your own work.

                Sorry if this comes across as harsh, but the purpose of Bytes isn't to do your job for you, it's to help you to learn to do your job better and become a better developer. Just giving you the answer doesn't serve that purpose.

                Please read what was posted above, dive in and give things a try. If you get bogged down, come back with specific questions.

                Good luck!

                Comment

                Working...