473,385 Members | 1,798 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,385 software developers and data experts.

Form Copying (VB.Net 2005)

Hi All
How do I copy a Form within a project?

TIA

johnb
Jun 27 '08 #1
5 1589
Right Click on the Form, click Copy. Repeat Right Click and click Paste?

Easy enough? Even easier, click on the form, then Ctrl-C, Ctrl-V.

Cheers,
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"johnb" <jo***@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
Hi All
How do I copy a Form within a project?

TIA

johnb

Jun 27 '08 #2
Cheers for the responce Anil. Er...Right clicking on the Form gives me "View
Code", "Lock controls" and "Properties" and right clicking on the Form in
the Solution Explorer give copy but no Paste.

Were it so simple I'd should have worked it in this rusty old brain of mine.
I believe there is a load of hidden code that gets regenerated on each
rebuild which refers back to the original form. And this where I'm lost

"Anil Gupte/iCinema.com" wrote:
Right Click on the Form, click Copy. Repeat Right Click and click Paste?

Easy enough? Even easier, click on the form, then Ctrl-C, Ctrl-V.

Cheers,
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"johnb" <jo***@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
Hi All
How do I copy a Form within a project?

TIA

johnb


Jun 27 '08 #3
On Jun 25, 5:13*am, johnb <jo...@discussions.microsoft.comwrote:
Hi All
How do I copy a Form within a project?

TIA

johnb
Depending on the Form, you might just want to abstract things back and
follow an inheritance model.

Thanks,

Seth Rowe [MVP]
Jun 27 '08 #4
On Jun 25, 7:06*am, johnb <jo...@discussions.microsoft.comwrote:
Cheers for the responce Anil. *Er...Right clicking on the Form gives me"View
Code", "Lock controls" and "Properties" and *right clicking on the Formin
the Solution Explorer give copy but no Paste.

Were it so simple I'd should have worked it in this rusty old brain of mine.
I believe there is a load of hidden code that gets regenerated on each
rebuild which refers back to the original form. And this where I'm lost

"Anil Gupte/iCinema.com" wrote:
Right Click on the Form, click Copy. *Repeat Right Click and click Paste?
Easy enough? *Even easier, click on the form, then Ctrl-C, Ctrl-V.
Cheers,
--
Anil Gupte
www.keeninc.net
www.icinema.com
www.wizo.tv
"johnb" <jo...@discussions.microsoft.comwrote in message
news:10**********************************@microsof t.com...
Hi All
How do I copy a Form within a project?
TIA
johnb
Personnally, I never trusted copy and pasting a form to reproduce it.

My standard model is to add a new form object, and copy / paste the
controls and code behind from the old form into the new one. The bad
thing is that you'll still need to set the form properties manually.

Thanks,

Seth Rowe [MVP]
Jun 27 '08 #5
Hi Seth

Thanks for the feedback I'll try that!

johnb

"rowe_newsgroups" wrote:
On Jun 25, 7:06 am, johnb <jo...@discussions.microsoft.comwrote:
Cheers for the responce Anil. Er...Right clicking on the Form gives me "View
Code", "Lock controls" and "Properties" and right clicking on the Form in
the Solution Explorer give copy but no Paste.

Were it so simple I'd should have worked it in this rusty old brain of mine.
I believe there is a load of hidden code that gets regenerated on each
rebuild which refers back to the original form. And this where I'm lost

"Anil Gupte/iCinema.com" wrote:
Right Click on the Form, click Copy. Repeat Right Click and click Paste?
Easy enough? Even easier, click on the form, then Ctrl-C, Ctrl-V.
Cheers,
--
Anil Gupte
>www.keeninc.net
>www.icinema.com
>www.wizo.tv
"johnb" <jo...@discussions.microsoft.comwrote in message
>news:10**********************************@microso ft.com...
Hi All
How do I copy a Form within a project?
TIA
johnb

Personnally, I never trusted copy and pasting a form to reproduce it.

My standard model is to add a new form object, and copy / paste the
controls and code behind from the old form into the new one. The bad
thing is that you'll still need to set the form properties manually.

Thanks,

Seth Rowe [MVP]
Jun 27 '08 #6

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

Similar topics

2
by: SSRoy | last post by:
Hi all, The type library is an important file for COM interop, without which unmanaged code can't interact with managed code. When I use .NET 2003, I can sucessfully generate .tlb file from a .NET...
3
by: Les Juby | last post by:
"SELECT id, title FROM Businesses WHERE Date_Added >= " & Request.Form("Since_Date") This SQL string returns all records from the table Businesses and does not seem to be able to recognise...
6
by: Ryan | last post by:
I have 2 forms, Form1.vb and Form2.vb. In Solution Explorer, Form2.vb no longer shows a Form icon nor do I have the option to open Form2.vb in the main explorer window where usually I have the...
5
by: cj | last post by:
In 2003 I had Public Class Form1 Inherits System.Windows.Forms.Form In 2005 I've seen it with and without the Inherits System.Windows.Forms.Form. Is it supposed to be there? I'm wondering...
0
by: Antro | last post by:
Hi, i'm using visual C# 2005. I've got two forms, frmMain and frmCalendar. At the minute i am opening frmCalendar which ive created in the visual studio like this, frmCalendar fmCalendar = new...
5
by: =?Utf-8?B?Umljaw==?= | last post by:
I have a form FormA with a button Button1; I use SetParent(FormB.Handle, this.Handle) to load FormB inside FormA. FormB also has a button Button1 which displays a messagebox. When Button1 is...
6
by: =?Utf-8?B?Unlhbg==?= | last post by:
I have three forms in my application; frmMain being the main form: frmMain containing two button; btnDisplayForm1 and btnDisplayForm2 FormA containing a button btnProcessRequestA FormB containing...
3
by: =?Utf-8?B?Umlja1NlYW4=?= | last post by:
I have a form with many text boxes; how do I implement Tool Tip for all text boxes withour using MouseHover method for each individual textbox?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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
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,...
0
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...

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.