Solved

project file management

Posted on 2001-08-01
6
158 Views
Last Modified: 2010-05-02
i am developing a project on visual baisc 6. i will be having around 100 different forms.i will have a same menu on all the forms which loads the different forms . for this purpose , should i make a single project file and put all the forms under this , or i shall make different project files for a group of related forms.

regards,
naresh
0
Comment
Question by:ATIRAS
6 Comments
 
LVL 6

Expert Comment

by:JonFish85
ID: 6343414
Private Declare Function SetMenu Lib "user32" Alias "SetMenu" (ByVal hwnd As Long, ByVal hMenu As Long) As Long
Private Declare Function GetMenu Lib "user32" Alias "GetMenu" (ByVal hwnd As Long) As Long


then:

Dim frm As Form

For Each frm In Forms
  SetMenu frm.hWnd, GetMenu(FormWithMenu.hWnd)
Next frm

hope this helps!
0
 
LVL 49

Expert Comment

by:Ryan Chong
ID: 6343432
<listening..>
0
 
LVL 5

Accepted Solution

by:
KDivad earned 50 total points
ID: 6343965
I'd say to use an MDIForm. Put the menu on it and make all the forms with that menu MDIChildren.
-or-
If the forms are shown only one at a time, you can use frames on a single form to contain the controls. This way, you'd have one form, one set of menus and you can just use show the frame you wish to show and hide the others.

Essentially, a project equals an app. If you split the forms to different projects, you'll end up with them in different apps.
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 4

Expert Comment

by:vindevogel
ID: 6346906
One for all, all for one ;-)
0
 
LVL 12

Expert Comment

by:guidway
ID: 7197449
This question appears to have been abandoned. A Moderator will be asked
to close this question after seven days, with the following recommended disposition:

Points to KDivad

If you have any comment or objection to the recommendation, please leave
it here.

guidway
EE Cleanup Volunteer

0
 
LVL 5

Expert Comment

by:Netminder
ID: 7211481
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now