Solved

Add existing for to vb6 project

Posted on 2004-09-14
6
209 Views
Last Modified: 2010-05-02
I started a new form (Form2) in my vb project.  This priject is saved in a folder on the desktop.  Now I find that this form is created (exist) in a different folder (the default flder of visual studio).

Being new to vb, I don't know how to bring it to the folder on the desktop.  And, after bringing it to this folder, I would like to save it as a Form3.

I was able to save Form2 (from vb default folder) as Form3 in desktop folder, but I am not ablet to make it show in object browser window along my other forms and modules.

Please give me step-by-step instruction.

Thank you.

Mike
0
Comment
Question by:Mike Eghtebas
6 Comments
 
LVL 3

Expert Comment

by:domj
ID: 12061579
All you need to do is import the form into the current project. Can't remember where it is exactly & I'm not near my VS box but try File-->Import. I think you can also right click on the object browser and get in this way...

Dom
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 12061657
The filenames of the forms are irrevelant.

But...you must make sure that the value of the Name property of the form you want to import isnt' already in your project.  So, you may have to either change the name of one of the existing forms in your project, or open the the project containing the form you want to import and change its name.

Then, go to...

Project --> Add Form
    Change to the "Existing" Tab
    Browse to the form file you want to import.
Change the names of your forms to what you want them to be

Regards,

Idle_Mind
   
0
 
LVL 23

Expert Comment

by:Ioannis Paraskevopoulos
ID: 12061659
To put your form

Open your project
Select the project menu(it's the third next to files manu) and click "add forms"
A window will come up.
Select the "Existing" tab of the window and browse through your pc to find the form you want.


To save your form

Select your form from the project explorer(the window which shows the forms,modules,projects etc. you are curently using)
Go to files menu and click "Save formX as" (where formX is the form you want to save) and chose where and with what name you want to save it
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 3

Expert Comment

by:sgayatri
ID: 12062198
I think your form2 is already added to the project .
So yu must first remove it.

1. Remove form2 from the Project menu
2. Physically copy the form2 from the default vb directory to the folder on the desktop
3. Rename it as you want (like form3 etc.)
4. Do Project >> Addform >> Existing
    select your form3 and add it to your project
5. Save the project

hope the solution is clear
0
 
LVL 10

Expert Comment

by:fds_fatboy
ID: 12063050
If sgayatri is correct in the assumption that your form is already in the project then it would be simpler to select your form (Form2) in the project window. From the menu File/Save Form2 As... then use the Save As dialog to browse to your project directory and sav it there.
This will produce a copy of your form in the correct directory and this will be automatically be included in your project. A file Form2 will exist in its original location. You may wish to delete it.
0
 
LVL 33

Author Comment

by:Mike Eghtebas
ID: 12069588
Hi  Idle_Mind,

There have been many correct answers but yours was first.  

In all honesty, I tried all of the suggestion given above before posting my question.  Part of your post saying: "But...you must make sure that the value of the Name property of the form you want to import isnt' already in your project." was what made me pay attention to the fact that, in vb, there is a name for object and there is a property name for it.  This was the point I was missing.

Because all these, my thank you goes to all contributed and the points goes to you.

Regards,

Mike
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 61
clicking a shape in a frame array vb6 3 45
Help with retrieving partial value from a column using VB.NET 4 48
Automatic Email Reminder 4 40
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question