Solved

project file management

Posted on 2001-08-01
6
165 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 51

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

726 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