VS 2005 bug in cut & paste controls?

  • Thread starter Thread starter Rob R. Ainscough
  • Start date Start date
R

Rob R. Ainscough

I selected 3 controls that were in a Frame control, I "Cut" the controls and
then pasted them outside the frame on the form. Now, when I double on the
control (hoping to load the default event for that control WITH my source
code in the event) I get a new event with the "_1" appended to the event
sub.

Two work arounds:
1. copy all my event code into the new "_1" equivalent events handlers
2. or create the event handler _1 rename it to my original copy the code
from my original into the new one and delete the original.

This seems like a pretty serious bug unless it is a "feature" which I find
hard to comprehend this being a "feature"? Cut & Pasting a control should
NOT disassociate all existing event references since the control name has
NOT changed.

Rob.
 
Rob said:
Two work arounds:
1. copy all my event code into the new "_1" equivalent events handlers
2. or create the event handler _1 rename it to my original copy the code
from my original into the new one and delete the original.

Or you could just go to the original copy and add Handles <eventname>
at the end of the declaration.
 
yes that is another option, so this is a known bug with VS 2005? Or is this
deemed "as designed feature"?

I hope we actually get some service pak updates for VS 2005 this time --
never saw any for VS 2003 and it needed them badly!
 
Back
Top