When I cut some controls in designer window and paste them in some other container, handles keywoards dissapears from code.
If I have btnOK on form and click event handled like this:
Private Sub btnOK_Click(...) Handles btnOK.Click
and then in designer I cut the button and paste it somewhere else, Handles part just disappears, living the method.
I understand why this happens, cutting like this is like deleting the control but silently removing parts of the code is not nice behavior from editor.
Is there any workaround, preference or plugin to add some warning before messing with my code? Or even better, to keep handlers and leave removing to me?
The best method I found was to not cut/paste at all in DotNet. You should be able to move your controls in and out of other controls without the need to cut/paste. Bring to Front and Send to Back also come in handy.