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. 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.
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.
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.
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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.....
|
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
|
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...
|
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,...
|
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...
| |
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...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |