Alan,
I don't believe there is a setting. It is by design to auto-generate event
handlers when you click a UI element. It also appears to be a bug in Visual
Studio. I have noticed this behavior when switching control selection to
set properties. One thing that has helped, believe it or not, is to Save
(CTRL+S) or Save All (CTRL+SHIFT+S) before clicking on the next design
element.
Hope this helps,
Steve
>I have the code window in the left tab group and the design window in the
> right tab group. If I am editing in the code window and I click on a
[quoted text clipped - 3 lines]
> settings
> change that can prevent this?