Solved

project file management

Posted on 2001-08-01
6
162 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 50

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
ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exit a vb6 apps when a calling it apps closes 15 48
How to compare ms sql hashbytes results within vb6 5 74
using web browser with BING 40 121
Added a column screws up code 5 57
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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

773 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