Library tutorials & articles
Create your own Add-Ins in VB
- Introduction
- What is the EOM?
- More EOM Objects
- Creating the example
- Examining the sample code
Creating the example
We will build a simple Add-In that will count the number of lines of code for a given program component.
To begin creating the Add-In, start a new project. Choose the AddIn project type. The AddIn project type includes many components necessary for creating VB Add-Ins. There is a form that you can modify to provide a user interface for your Add-In. There is also a designer module that contains the four methods that are needed for the Add-In's interface to VB.
Remove the Ok and Cancel buttons from the form and add the following controls to the form:
| Control Type | Property | Value |
| Form | Name | FrmAddIn |
| Label | Caption | Line Counter |
| Label | Caption | Project |
| TextBox | Name | txtProject |
| Label | Caption | Component |
| TextBox | Name | TxtComponent |
| CommandButton | Name | CmdCountCodeLines |
| Caption | Count Code Lines | |
| CommandButton | Name | CmdDone |
| Caption | Done | |
| Label | Caption | Code Lines |
| TextBox | Name | txtCodeLines |
Here is the code:
|
|
Related articles
Related discussion
-
Run-time error '91'
by converter2009 (1 replies)
-
VB6 Runtime error 381 subsript out of range Error
by Uncle (2 replies)
-
passing and reading parameters from using Shell
by jigartoliya (0 replies)
-
Convert C++ code to VB6
by mawcot (4 replies)
-
listbox scrollbar
by Dennijr (10 replies)
Related podcasts
-
Christian Beauclair
14 mai 2008 (�mission #0074) ::.Christian Beauclair: Stratégies de migration VB6 vers .NET Nous discutons avec Christian Beauclair des stratégies de migration VB6 vers .NET. Entre autres, nous discutons comment utiliser le "VB 6 Code Advisor" et le "Interop Forms Toolkit" pour ajouter la puiss...
Hello i am using VB6.0 at the moment, but i can not design a program to use printer. please, help me. thanks.
!--removed tag-->It helped to create my Add-In in just 5 minutes. An Excellent guide.
This thread is for discussions of Create your own Add-Ins in VB.