Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > adding an already existing form to a project.


Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2003, 11:36 AM
stephenlecompte's Avatar
stephenlecompte stephenlecompte is offline
Contributor
 
Join Date: Apr 2003
Location: Houston, TX
Posts: 456
Cool adding an already existing form to a project.


I've got the perfect form already made with the name ORDENTRY.frm. Not sure what ORDENTRY.frx is though? Now, I want to add another form exactly like my ORDENTRY.frm - but of course, Visual Basic 6 won't let you load it in - Add - Existing Form - Error - already exists in project.

I also tried copying both ORDENTRY.frx and ORDENTRY.frm and renaming them to ORDADJUST.frx and ORDADJUST.frm then loading them into the project but I keep getting name ORDENTRY already exists in Project.

My question is how can I have the form I need without recreating it all over again?
__________________
"A man who is right every time is not likely to do very much."
- Francis Crick (1916-2004), DNA decipherer
Reply With Quote
  #2  
Old 10-16-2003, 11:41 AM
vbFace's Avatar
vbFace vbFace is offline
Contributor
 
Join Date: Sep 2003
Location: New Jer$ey
Posts: 540
Default

Quote:
Originally Posted by stephenlecompte
but of course, Visual Basic 6 won't let you load it in - Add - Existing Form - Error - already exists in project.




If the form is already in the project, why do you want to add it again?
If you made changes to it outside your current project and saved it in another place, remove the current one and add the new one.
Reply With Quote
  #3  
Old 10-16-2003, 11:48 AM
stephenlecompte's Avatar
stephenlecompte stephenlecompte is offline
Contributor
 
Join Date: Apr 2003
Location: Houston, TX
Posts: 456
Default ?

The form will be the same but the code will be entirely different.

Its easier for me to add a new form by using the same format - construct the code - then later delete that form and incorporate the code into the old form.

In fact, I'll probably just take the code out of the form and save it in Word and start fresh...with constructing the new code and then later paste the old code before it.
__________________
"A man who is right every time is not likely to do very much."
- Francis Crick (1916-2004), DNA decipherer
Reply With Quote
  #4  
Old 10-16-2003, 11:57 AM
KnightRider KnightRider is offline
Regular
 
Join Date: May 2002
Location: Venezuela
Posts: 90
Default Hi

Follow this steps:
1.- save ORDENTRY.frm
2.- Go to properties and change its Name, say "ODENTRY1"
3.- go to Files/Save ORDENTRY.frm As
4.- Change the file name to ORDENTRY1.frm
When you do this, ORDENTRY.frm will be remove from the project.
5.- Go to Add Form/Existing and add ORDENTRY.frm again to the project
6.- You´ve got two form exactly the same.


ORDENTRY.frx is a binnary file that contents binary information of ORDENTRY.frm they are like you and your shadow. Where one goes goes the other.

if you have any other question eMail me to:
orangelfigueroa@cantv.net
__________________
I owe, I owe so off to work I go
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a class to a project (form) duranross General 11 03-09-2003 06:54 AM
Adding one project to another! sirbum69 General 4 12-04-2002 12:39 PM
Adding cd key and aggrement in the existing VB Project swapnilsane General 1 08-04-2002 06:08 AM
adding a form in Access project cornbread Word, PowerPoint, Outlook, and Other Office Products 1 11-08-2001 08:58 AM
Create a new form similar to an existing form ric General 6 07-17-2001 01:47 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->