Designer Erases My Code

Dec 14, 2008 at 4:15 PM

In the Designer, if I create a button with a Click event, and then create a text box and add a KeyPress or KeyDown event, it erases my button code and replaces it with the text box control. If I redo the button, it erases the text box control.

I saw a similar problem on the issue tracker, but I didn't understand the workaround. Can anyone help me fix this, or does anyone have a workaround? It would be greatly appreciated.

Dec 14, 2008 at 4:19 PM
Correction, it only does this when I change the names of the text box/button, apparently...