Solved

How to add Class Module in VB6?

Posted on 2004-10-07
3
950 Views
Last Modified: 2010-05-18
Hi!

In VB6, Project Window we have a list of forms, modules, class modules, etc.
When I right click I have an option to add new form, new module, new user control, etc. but there's no option to add Class Module.
In order to add a class module I have to open a Notepad, save empty file under cls extension and only then add it through 'Add File...' option in VB.

Is there a way to include "Add -> Class Module" option in that pop-up menu?
0
Comment
Question by:dbrckovi
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
mladenovicz earned 100 total points
ID: 12247157
In VB IDE go to View->Toolbars->Customize.
Select Commands Tab
Select Project
Select Add Class Module and drag and drop it to the project menu.
0
 
LVL 11

Author Comment

by:dbrckovi
ID: 12247202
Thanks!

I openned that Customize Window several times, but I didn't realize I actualy have to drag&drop it on a menu.
I tried dropping it on Project item in Categories list, and it didn't work.
0
 
LVL 8

Expert Comment

by:mladenovicz
ID: 12247224
You're welcomed ;)
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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…
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…

786 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