473,499 Members | 1,893 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VS Unwire Bug

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.
Nov 20 '05 #1
4 990
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.
"Juan Romero" <ju*********@bowne.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 20 '05 #2
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.
"Merlin" <iM*****@hotmail.com> wrote in message
news:c0**********@hercules.btinternet.com...
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.
"Juan Romero" <ju*********@bowne.com> wrote in message
news:uW**************@TK2MSFTNGP09.phx.gbl...
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.


Nov 20 '05 #3
On Thu, 12 Feb 2004 16:28:34 +0000 (UTC), Merlin wrote:
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.

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


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.

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.
Nov 20 '05 #4
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...

"Chris Dunaway" <dunawayc@_lunchmeat_sbcglobal.net> wrote in message
news:1t*******************************@40tude.net. ..
On Thu, 12 Feb 2004 16:28:34 +0000 (UTC), Merlin wrote:
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.
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


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.

--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
982
by: joe mamma | last post by:
I know it works for basic widows form components. . . Similar approach can be applied for other controls if this doesn't work . . . Typical Usage: ============================= ArrayList...
1
2580
by: Soul | last post by:
*** I am not sure this question belong to *.languages.csharp or *.framework.windowsdorms.databinding, so I post to both *** Hi, Currently I have a DataGrid which bind to a DataSet. One of...
2
1309
by: Barry Mossman | last post by:
Hi, What is required to unwire an event ? I wire it with: this.MyEvent += new MyEventHandler() Do I need to maintain a handle to the eventhandler created so that I can detach it ? The...
1
55665
by: MuZZy | last post by:
Hi, Is there a way to remove all event handlers for a control's event? Say, i have a button and i want to remove all button.Click events for it - i don't know how many of them was hooked to the...
132
5590
by: Kevin | last post by:
I don't know if I should even start this topic but here goes. I'm an ex vb6 developer, now developing in C#. The reason why I started developing in C# is because the company that I worked for at...
7
14135
by: Doru Roman | last post by:
Hi, What is the fastest way to evaluate manually the result in this case: int a, b, c; a = 255; b = 122; c = a & b; The only way I know is transforming each number into the binary value...
1
1727
by: CB | last post by:
When designing an object, is there a best practice for how to allow the user of the object to tell the object to remove itself from any delegates / events it has registered with? For example.....
37
1578
by: Peter | last post by:
I am wondering if I should turn to C# from VB. How long will this turning cost for an ordinary man? Thanks for any response, Peter
4
2024
by: Joergen Bech | last post by:
I sometimes use delegates for broadcasting "StateChanged" events, i.e. if I have multiple forms and/or controls that need updating at the same time as the result of a change in a global/common...
0
7131
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7388
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5470
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3099
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3091
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.