Event Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • WStoreyII

    Event Question

    I know that by using the event key word you cant create and event and then a delegate to hanld that event
    my question is how does one tell the computer what defines the event

    say for example (completely hypothetical situation ) that i wanted to create an event that was triggered anytime the letter a
    was typed anywhere on the form

    how do i tell the computer that this is an event and then associate that with the event that i created

    WStoreyII
  • Herfried K. Wagner [MVP]

    #2
    Re: Event Question

    * =?Utf-8?B?V1N0b3JleUl J?= <papastoreyii@s bcglobal.net> scripsit:[color=blue]
    > I know that by using the event key word you cant create and event and then a delegate to hanld that event
    > my question is how does one tell the computer what defines the event
    >
    > say for example (completely hypothetical situation ) that i wanted to create an event that was triggered anytime the letter a
    > was typed anywhere on the form
    >
    > how do i tell the computer that this is an event and then associate that with the event that i created ?[/color]

    You will need a global keyboard hook to capture these events:

    <URL:http://www.developer.c om/net/net/article.php/11087_2193301_1/>

    --
    Herfried K. Wagner [MVP]
    <URL:http://dotnet.mvps.org/>

    Comment

    • Sumit Gupta

      #3
      Re: Event Question

      One think you can do...
      capture th Keypress on FOrM or on Control than check the Key press if its
      your desire key call the particular function. Simple...YOu capture the event

      Sumit

      "WStoreyII" <papastoreyii@s bcglobal.net> wrote in message
      news:4975A509-FE80-4D7D-9447-D94319D5F209@mi crosoft.com...[color=blue]
      > I know that by using the event key word you cant create and event and then[/color]
      a delegate to hanld that event[color=blue]
      > my question is how does one tell the computer what defines the event
      >
      > say for example (completely hypothetical situation ) that i wanted to[/color]
      create an event that was triggered anytime the letter a[color=blue]
      > was typed anywhere on the form
      >
      > how do i tell the computer that this is an event and then associate that[/color]
      with the event that i created ?[color=blue]
      >
      > WStoreyII[/color]


      Comment

      • WStoreyII

        #4
        Re: Event Question

        Thank You

        One Last Question
        The Letter Scenario was just an exaple however is it the same principal for any event

        You just use other events to determine when that event has happened and then you throws the userdefined event

        WStoreyII

        Comment

        Working...