473,769 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

copy forms across applications

I developed an application using visual studio 2003. Now I want to make a
similar application without having to redesign similar forms. Is there a way
to copy and paste windows forms across application? I can copy from one to
the paste buffer. BUT, there is no corresponding paste on the second
application.

How can you do this???

tia...

Mar 1 '06 #1
5 1469
What I have done is to copy the form and associated files (resx, etc...) via
the file system first, then "add existing item" on the target project and
select the form file you just copied... And then fix the namespace,
references, and other errors you might have when using the form for the
first time.

"ki******@hotma il.com" <ki******@hotma il.com@discussi ons.microsoft.c om>
wrote in message news:53******** *************** ***********@mic rosoft.com...
I developed an application using visual studio 2003. Now I want to make a
similar application without having to redesign similar forms. Is there a
way
to copy and paste windows forms across application? I can copy from one to
the paste buffer. BUT, there is no corresponding paste on the second
application.

How can you do this???

tia...

Mar 1 '06 #2


"Gabriel Magaña" wrote:
What I have done is to copy the form and associated files (resx, etc...) via
the file system first, then "add existing item" on the target project and
select the form file you just copied... And then fix the namespace,
references, and other errors you might have when using the form for the
first time.

"ki******@hotma il.com" <ki******@hotma il.com@discussi ons.microsoft.c om>
wrote in message news:53******** *************** ***********@mic rosoft.com...
I developed an application using visual studio 2003. Now I want to make a
similar application without having to redesign similar forms. Is there a
way
to copy and paste windows forms across application? I can copy from one to
the paste buffer. BUT, there is no corresponding paste on the second
application.

How can you do this???

tia...



That only copied the vb code and NOT the windows forms (menus, buttons, text
fields...)
Mar 1 '06 #3
Notice I said "and associated files" which may contain these missing pieces.
Otherwise try drag and drop as opposed to copy-paste...

"ki******@hotma il.com" <ki************ ****@discussion s.microsoft.com > wrote
in message news:59******** *************** ***********@mic rosoft.com...


"Gabriel Magaña" wrote:
What I have done is to copy the form and associated files (resx, etc...)
via
the file system first, then "add existing item" on the target project and
select the form file you just copied... And then fix the namespace,
references, and other errors you might have when using the form for the
first time.

"ki******@hotma il.com" <ki******@hotma il.com@discussi ons.microsoft.c om>
wrote in message
news:53******** *************** ***********@mic rosoft.com...
>I developed an application using visual studio 2003. Now I want to make
>a
> similar application without having to redesign similar forms. Is there
> a
> way
> to copy and paste windows forms across application? I can copy from one
> to
> the paste buffer. BUT, there is no corresponding paste on the second
> application.
>
> How can you do this???
>
> tia...
>



That only copied the vb code and NOT the windows forms (menus, buttons,
text
fields...)

Mar 1 '06 #4


"Gabriel Magaña" wrote:
Notice I said "and associated files" which may contain these missing pieces.
Otherwise try drag and drop as opposed to copy-paste...

"ki******@hotma il.com" <ki************ ****@discussion s.microsoft.com > wrote
in message news:59******** *************** ***********@mic rosoft.com...


"Gabriel Magaña" wrote:
What I have done is to copy the form and associated files (resx, etc...)
via
the file system first, then "add existing item" on the target project and
select the form file you just copied... And then fix the namespace,
references, and other errors you might have when using the form for the
first time.

"ki******@hotma il.com" <ki******@hotma il.com@discussi ons.microsoft.c om>
wrote in message
news:53******** *************** ***********@mic rosoft.com...
>I developed an application using visual studio 2003. Now I want to make
>a
> similar application without having to redesign similar forms. Is there
> a
> way
> to copy and paste windows forms across application? I can copy from one
> to
> the paste buffer. BUT, there is no corresponding paste on the second
> application.
>
> How can you do this???
>
> tia...
>


That only copied the vb code and NOT the windows forms (menus, buttons,
text
fields...)



I copied the .vb and .resx files (are there more?) from the first
application to the second directory, then did the "add existing". I see the
..vb code and the .resx in the second project, but the resx file opens as a
table of the forms I want. no forms.

Mar 1 '06 #5
Choose 'Add existing item' then select the .cs file of the form from your
source folder then click 'Open'. The IDE will copy everything about the form
to your project folder for you. Try to see if this is what you want. To
prevent error in opening the form, ensure you have added all necessary
reference about the form to to project first.
"ki******@hotma il.com" wrote:


"Gabriel Magaña" wrote:
Notice I said "and associated files" which may contain these missing pieces.
Otherwise try drag and drop as opposed to copy-paste...

"ki******@hotma il.com" <ki************ ****@discussion s.microsoft.com > wrote
in message news:59******** *************** ***********@mic rosoft.com...


"Gabriel Magaña" wrote:

> What I have done is to copy the form and associated files (resx, etc...)
> via
> the file system first, then "add existing item" on the target project and
> select the form file you just copied... And then fix the namespace,
> references, and other errors you might have when using the form for the
> first time.
>
> "ki******@hotma il.com" <ki******@hotma il.com@discussi ons.microsoft.c om>
> wrote in message
> news:53******** *************** ***********@mic rosoft.com...
> >I developed an application using visual studio 2003. Now I want to make
> >a
> > similar application without having to redesign similar forms. Is there
> > a
> > way
> > to copy and paste windows forms across application? I can copy from one
> > to
> > the paste buffer. BUT, there is no corresponding paste on the second
> > application.
> >
> > How can you do this???
> >
> > tia...
> >
>
>
>

That only copied the vb code and NOT the windows forms (menus, buttons,
text
fields...)



I copied the .vb and .resx files (are there more?) from the first
application to the second directory, then did the "add existing". I see the
.vb code and the .resx in the second project, but the resx file opens as a
table of the forms I want. no forms.

Mar 2 '06 #6

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

Similar topics

4
27717
by: The Flyer | last post by:
Hi Sorry for posting this message to so many groups, but I was not sure which group the windows keyboard experts would be reading, so I ventured to post it to all of them. I want to map or create shortcut on the keyboard for Cut/Copy/Paste functions. I can use the regular Control_X, C or V to do the same in Windows XP, but I would rather press a single key just like in Sun Solaris keyboards which have specific keys for these functions.
2
1821
by: TomB | last post by:
Ok, I'm new to dotnet. Not only do I need help I need to know which of the dotnet groups would be best for this question. I have over 30 applications in Access with nearly 300 forms that have to be converted to dotnet. Naturally redesign will be included but it would save a lot of time if I could import to dotnet the forms used in the old applications. It looks like the majority of controls map across. This would give the look if not the...
1
2004
by: JC | last post by:
I have several applications that use forms authentication and they are currently setup to use a single login page. Everything works fine under v1.0 of the framework and everything works fine if I have all applications running under v1.1. However, I need the login page and a few apps to be running under using v1.0 with other applications running under v1.1. Now my authentication cookie is no longer being accepted anywhere other than by...
7
2500
by: dave | last post by:
I have one application that is used within our intranet that places a forms auth cookie for our domain (for intranet purposes only). All other applications rely on this cookie for authentication and user identification. i.e. on the 2nd applications if the cookie does not exist the user is redirected back to the primary app to get the forms authentication cookie Now, if i want to run locally the 2nd application it is looking for a...
2
1523
by: Dotnet Guy | last post by:
Hi, I have different asp.net applications as sub applications within an application and was using Framework 1.0. And I use forms authentication across the applications. In the web.config file of outer application I have <authentication mode="Forms"> <forms name=".ASPXAUTH" loginUrl="Default.aspx" path="/" timeout="20"/> </authentication> While in the web.config of the Sub applications I have
1
2195
by: AVance | last post by:
Hi, I've come across this scenario in ASP.NET 1.1 with forms authentication where the forms auth doesn't seem to timeout correctly, nor redirect to the login page. I have done some testing, and I believe I've found a solution, but I would like some insight from Microsoft on whether the code I've implemented is correct, and why it is even working. Here is my scenario:
2
2686
by: Keith | last post by:
I'm trying to come up with a way to create a contextmenu that will do all the "standard" functions (cut, copy, paste, undo, etc). There seems to be a lot of information out there - but nothing seems to work for me. A few people refer to txt.copy() txt.paste(), etc. I'm not sure if those are old functions, but they do not work for me. I've tried textbox1.selectall() - that works in selecting
4
1769
by: David | last post by:
Hi all, I have a problem with Forms Auth. I am not using the protected folder method, rather, I want some parts of the page to be shown depending on the authentication state. Basically, I have a dashboard application. In the dashboard, I have various hyperlinks and linkbuttons. I have also created roles and each user will be assigned a role and the buttons in the dashboard will depend on the role. If the person is not authenticated,...
4
3604
by: =?Utf-8?B?RmFyaWJh?= | last post by:
It know that we can use the following method http://msdn2.microsoft.com/en-us/library/eb0zx8fc.aspx to form authenticate across multiple applications. I have created an asp.net application that supports form authentication. My application is going to be called by another legacy application (HTML) which does the initial authentication.Something like this: <form name="form1" action="auth.asp" method="post" >
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
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
10049
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
9997
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
9865
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3965
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
3565
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.