473,396 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Copying and pasting components with events

I have a very serious problem with my forms and components that I was
wondering if there was a way to turn off. The problem is as follows:

1) create a form and place 50 components on the form with various types of
events attached to each field and grid, such as exit events, key press
events and so on.

2) Deside at some point that you made a mistake and need to have a tabbed
notebook on the form to help break down the clutter and organize
information.

3) Cut all fields from form, drop tabbed notebook down and then paste all
fields back onto the form and let the fun begin.

What happens at this point is all of the fields are pasted back to the form,
except now they have no events attached to them. This is a very serious
problem but for some reason the developers of VS desided to make it worse.

If you decide you would like to relink that exit event for textbox1 and you
go double click on it, instead of linking to the event that has already been
created and has that name associated with it, the sytsem will instead create
a -2 version of the same event and link it to somewhere that has no code
what so ever.

I am looking at starting a new project in VS that is going to become a very
large project with a huge user interface component. However, this one issue
is causing me serious concern as to whether VS is ready for such a
production use. I know there are millions of other programmers using it to
create applications, however, they are a lot more willing to deal with this
stuff that we are. I am wondering if there is some property some where that
can be changed that would cause the environment to link back properly or at
the very least not create more events when an event already exists with that
fields name.

Thanks,

glenn
Nov 16 '05 #1
2 1106
First of all, you should plan out your project before you start building
forms and coding it. If you do need to make changes, you can drag the
components into the tab control intead of cutting and pasting.

When I went to school, we had to do everything in notepad until we knew what
we where doing before we where even allowed to use any development
environment. So when we got to use the IDE... we where greatful.

As far as big systems go. Our system is a very large n-tier system that is
100% OO. I think you just need to get use to certain little quirks and be
grateful you don't have to do the whole thing in notepad:)

bobc
"glenn" <gh******@softeksoftware.com> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl...
I have a very serious problem with my forms and components that I was
wondering if there was a way to turn off. The problem is as follows:

1) create a form and place 50 components on the form with various types
of
events attached to each field and grid, such as exit events, key press
events and so on.

2) Deside at some point that you made a mistake and need to have a tabbed
notebook on the form to help break down the clutter and organize
information.

3) Cut all fields from form, drop tabbed notebook down and then paste all
fields back onto the form and let the fun begin.

What happens at this point is all of the fields are pasted back to the
form,
except now they have no events attached to them. This is a very serious
problem but for some reason the developers of VS desided to make it worse.

If you decide you would like to relink that exit event for textbox1 and
you
go double click on it, instead of linking to the event that has already
been
created and has that name associated with it, the sytsem will instead
create
a -2 version of the same event and link it to somewhere that has no code
what so ever.

I am looking at starting a new project in VS that is going to become a
very
large project with a huge user interface component. However, this one
issue
is causing me serious concern as to whether VS is ready for such a
production use. I know there are millions of other programmers using it
to
create applications, however, they are a lot more willing to deal with
this
stuff that we are. I am wondering if there is some property some where
that
can be changed that would cause the environment to link back properly or
at
the very least not create more events when an event already exists with
that
fields name.

Thanks,

glenn

Nov 16 '05 #2
Well, thanks for the guideance on the perfect plan but in any software
development project I"ve ever been associated with, planning out the entire
system without making any changes just does not happen. I also appreciate
the drag and drop idea as perhaps that will take care of the problem. I'll
give that a try.

VS is also fully appreciated as being better than notepad, however, my
comparisons come from other IDE's in other languages that handle things such
as this with no problem. I hope that the 2005 stuff fixes this bug as it
could be explained as nothing other than that.

Thanks for the info...

glenn
"Bob Calvanese" <bc********@comcast.net> wrote in message
news:kb********************@comcast.com...
First of all, you should plan out your project before you start building
forms and coding it. If you do need to make changes, you can drag the
components into the tab control intead of cutting and pasting.

When I went to school, we had to do everything in notepad until we knew what we where doing before we where even allowed to use any development
environment. So when we got to use the IDE... we where greatful.

As far as big systems go. Our system is a very large n-tier system that is
100% OO. I think you just need to get use to certain little quirks and be
grateful you don't have to do the whole thing in notepad:)

bobc
"glenn" <gh******@softeksoftware.com> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl...
I have a very serious problem with my forms and components that I was
wondering if there was a way to turn off. The problem is as follows:

1) create a form and place 50 components on the form with various types
of
events attached to each field and grid, such as exit events, key press
events and so on.

2) Deside at some point that you made a mistake and need to have a tabbed notebook on the form to help break down the clutter and organize
information.

3) Cut all fields from form, drop tabbed notebook down and then paste all fields back onto the form and let the fun begin.

What happens at this point is all of the fields are pasted back to the
form,
except now they have no events attached to them. This is a very serious
problem but for some reason the developers of VS desided to make it worse.
If you decide you would like to relink that exit event for textbox1 and
you
go double click on it, instead of linking to the event that has already
been
created and has that name associated with it, the sytsem will instead
create
a -2 version of the same event and link it to somewhere that has no code
what so ever.

I am looking at starting a new project in VS that is going to become a
very
large project with a huge user interface component. However, this one
issue
is causing me serious concern as to whether VS is ready for such a
production use. I know there are millions of other programmers using it
to
create applications, however, they are a lot more willing to deal with
this
stuff that we are. I am wondering if there is some property some where
that
can be changed that would cause the environment to link back properly or
at
the very least not create more events when an event already exists with
that
fields name.

Thanks,

glenn


Nov 16 '05 #3

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

Similar topics

2
by: Jeremy | last post by:
I have a pretty straightforward database that is designed to record free-form information about products (date, source and a memo field). This is searched and updated via a form. For new records,...
2
by: Simon Kravis | last post by:
After adding a TabControl to an Access 2000 form during screen redesign, I found that when cutting and pasting a group of controls (option groups, option buttons, command buttons, MSFlexGrid) into...
3
by: winshent | last post by:
I have copied approx 20 controls from a form to a tab control for reasons of space. i now cannot run code triggered by the events of these controls. for example, the following will not trigger...
0
by: postings | last post by:
Hi I'm a little confused. I've deployed my ASP.NET project by using the "copy project" feature of VS2003. Works fine. I'm stuck however in copying individual files to the deployed solution. ...
4
by: kstriyhon | last post by:
i need to manage mouse events in OWC pivot table in a web form not in a windows form and i can not find any information about this topic, the article i found manage events in a pivot table in a...
6
by: solex | last post by:
Hello, I am trying to use serialization to copy objects. The object in question "Institution" inherits from a parent object "Party" both are marked as <Serializable()>. Initially I can copy an...
10
by: Martin Ho | last post by:
I am running into one really big problem. I wrote a script in vb.net to make a copy of folders and subfolder to another destination: - in 'from.txt' I specify which folders to copy - in...
1
by: Bob Smith | last post by:
I'm using VB.NET 2003 to extend the functionality of an application (Cadcorp GIS) and have a solution with a single project, a user control and a constants file added from the application. The...
48
by: mantrid | last post by:
Hello Is there a way to prevent users copying a full size image from a web page. Displaying the image with a smaller width and height only affects the image as viewed, the actual full size image...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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
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,...

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.