none
Troubles with Basic form events and custom events RRS feed

  • Question

  • Hello!

    Well, I have a problem

    A have created a Form, using Visual Studio 2005 designer, also I have created a method wich must proсess the KeyPress Event and also I've created my custom event with custom arguments and my Form also have a handler to process that event. But I have a problem: when my program is running and I'm pressing, for example, the ENTER key, my Form perfoms My custom handler and not a standart handler. I can't understand, why ? I did't set my custom method as a handler of KeyPress event and I generate my custom event in other places of my program ( I want to say that when I'm pressing the key, I don't generate my custom event ) . Can you help me with my trouble, I want to handle KeyPress Events correctly.

    P.S. I've tried to disable any handlers of my custom events, but my Form as before don't process KeyPress event with standart method (it do nothing at all!) but I saw generated by designer code and that method was set as a handler of KeyPress event ...

    Thanks for help.

    Tuesday, November 28, 2006 5:55 PM

All replies