Help with making a vb Add-In

DeX
09-10-2003, 04:52 PM
I've got the basics of making a vb add-in ok. I can compile a dll, register it and it will appear in the Add-In list. But now I want to create an add-in that interatacts with the IDE directly, specifically I want to return a list of forms in the currently selected project, return the list of controls on each form and return the properties of each of the controls.

I've got the first bit using the following code:


Public VBInstance As VBIDE.VBE

Dim i As Long
For i = 1 To VBInstance.ActiveVBProject.VBComponents.Count
If VBInstance.ActiveVBProject.VBComponents(i).Type = vbext_ct_VBForm Then
cboForms.AddItem VBInstance.ActiveVBProject.VBComponents(i).Name
End If
Next i


That lists the project's forms in a combo box. But now I can't seem to figure out how to find the form's controls and their properties. Having to compile to a dll all the time makes debugging a lot of hard work. Does anyone know how to do these last two things?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum