473,796 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1120
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******@softe ksoftware.com> wrote in message
news:ef******** ******@TK2MSFTN GP10.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********@com cast.net> wrote in message
news:kb******** ************@co mcast.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******@softe ksoftware.com> wrote in message
news:ef******** ******@TK2MSFTN GP10.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
4721
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, the memo field is usually filled by cutting and pasting from e-mails, web content and spreadsheets. The only problem is that some of the memos can be just a few words, and some can be tens or hundreds of lines, and I've realised that zooming...
2
2251
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 the first page of the tab control, no control events were fired by any of the pasted controls, even though their appearance changed as though events were being triggered. I found that new controls defined in the tab page generated events...
3
3795
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 the message box when changed: Private Sub cboA_Change() MsgBox "combo A changed"
0
1283
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. I've tried copying on a file with one instance of VS2003 with a solution, and pasting into another instance of VS2003 with the deployed solution loaded (using the right click method). If I do this I get an
4
3457
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 windows form but this does not work for what i need, i allready looked in the OWC black book but i can not find anythin about this particular issue. any help would be great, thank's in advance
6
2566
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 empty Institution to another empty Institution, using the following routine: Private Sub CopyObject(ByRef FromObject As Object, ByRef ToObject As Object) Dim m As New MemoryStream Dim b As New BinaryFormatter
10
7838
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 'to.txt' I specify where to copy it - After I read content of 'to.txt' I create one more subfolder named by current date and thats where everything gets to be copied
1
1179
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 code merely connects to the application and so is required for every customisation I produce for the application. What I'd like is some means of saving this basic solution/project with a new name or copying and pasting it so I don't have to...
48
2344
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 file is still downloaded. I know I can get around it by having two versions of an image, the full size one and a smaller on for display purposes. but is there a way around having to have two images and use the full ssize one and stop it being...
0
9530
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10236
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10182
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6793
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5445
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
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 we have to send another system
2
3734
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.