?
Solved

How to add Class Module in VB6?

Posted on 2004-10-07
3
Medium Priority
?
962 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
mladenovicz earned 400 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month12 days, 6 hours left to enroll

752 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