VS Unwire Bug

  • Thread starter Thread starter Juan Romero
  • Start date Start date
J

Juan Romero

Hi guys,

This is probably old, but it is getting on my nerves.

When you cut and paste an object graphically while using the Visual Studio
Editor (say for example, a button), all the methods get disconnected or
unwired from their respective handlers (code). for the button for example,
if I have placed code on the click event and I cut and paste the button, the
next time I double click on it, it creates another subroutine in the form
Button_Click_1, and it wires to this one, so I end up deleting the old one,
copying the content, reclicking on the button and pasting the content again.
This might not be a big deal with a button, but when you have a bunch of
controls and you want to say put them into a panel or something and you cut
and paste, you have to go and wire everything manually again!

Is there a fix or a way to get around this???

Thank you in advance.
 
Drives me mental too, especially If I've got dozens of handlers and then I
decide to put them in a group box, I end up spending the next hour picking
all the code out and replacing it.

Merlin.
 
It's good to know I am not alone..... he he
This is a major issue. They should really fix this ASAP.
Otherwise, we can start calling it RCPD (Rapid Copy and Paste Development)
rathen than RAD.
 
Drives me mental too, especially If I've got dozens of handlers and then I
decide to put them in a group box, I end up spending the next hour picking
all the code out and replacing it.

Just a dumb question, but when moving a control (say a group of buttons)
into a panel or group box, why not just drag them there? Cut and Paste may
unwire the handlers, but dragging the buttons (or whatever) does not.
 
Yes, but lets say that you have placed a groupbox on the form, then you put
a panel with a number of controls. You can drag stuff here and there, and
dock the panel and the groupbox. But then you decide you want to have a
status bar on your form.... simple right? just add the control. Well, you
add the status bar and... ouch, the panel is actually docking at the bottom
and your status bar is not! (ever experienced that?). In order for things to
dock properly, you have to cut everything else out of the form and then
paste it again. This behavior is due to the zorder of controls on the form,
so you have no choice, either you decide what you want to have on your form
before hand, or start copying and pasting.....

By the way, I don't recall the VB6 code window object having these
problems...
 
Back
Top