Blocking the Alt button

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Patrick De Ridder

    Blocking the Alt button

    Hi,
    Could someone please tell me how to block the Alt button from being used?
    And how to unblock it again when exiting the application?
    Many thanks,
    Patrick




  • Christian T.

    #2
    RE: Blocking the Alt button

    You can write a key event handler to "ignore" the ALT key.

    Cheers,
    Christian T. [MSFT]
    Visual Studio Update Team

    - Please do not reply to this email directly. This email is for newsgroup
    purposes only.
    =============== =============== =============== =============== =============
    This posting is provided "AS IS" with no warranties, and confers no
    rights. Use of included script samples are subject to the terms specified
    at http://www.microsoft.com/info/cpyright.htm

    Note: For the benefit of the community-at-large, all responses to this
    message are best directed to the newsgroup/thread from which
    they originated.
    =============== =============== =============== =============== =============

    --------------------[color=blue]
    >From: "Patrick De Ridder" <00@00.00>
    >Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
    >Subject: Blocking the Alt button
    >Date: Wed, 7 Jan 2004 22:10:11 +0100
    >Lines: 9
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    >Organization : Freeler
    >Message-ID: <1073509860.934 074@evisp-news-01.ops.asmr-01.energis-idc.net>
    >Cache-Post-Path:[/color]
    evisp-news-01.ops.asmr-01.energis-idc.net!unknown @62.21.160.173[color=blue]
    >X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/)
    >X-Complaints-To: abuse@news-service.com
    >NNTP-Posting-Host: evisp-news-01.ops.asmr-01.energis-idc.net
    >X-Trace: 1c4f23ffc75fd70 7feeec7517
    >Path:[/color]
    cpmsftngxa07.ph x.gbl!cpmsftngx a06.phx.gbl!cpm sftngxa09.phx.g bl!TK2MSFTNGP08 .
    phx.gbl!newsfee d00.sul.t-online.de!t-online.de!130.5 9.10.21.MISMATC H!irazu.s
    witch.ch!switch .ch!ecngs!feede r.ecngs.de!news feed.kabelfoon. nl!news-x2.suppo
    rt.nl!post.news-service.com!nf2 .news-service.com|not-for-mail[color=blue]
    >Xref: cpmsftngxa07.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:2101 53
    >X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
    >
    >Hi,
    >Could someone please tell me how to block the Alt button from being used?
    >And how to unblock it again when exiting the application?
    >Many thanks,
    >Patrick
    >
    >
    >
    >
    >[/color]

    Comment

    • Patrick De Ridder

      #3
      Re: Blocking the Alt button

      Hi Christian,

      if(e.KeyChar == (char) 56)
      e.Handled = true;

      doesn't do the trick.

      What is wrong?

      Patrick.


      Comment

      Working...