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. users may read more about this at the microsoft site (see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/html/vbconcreatingaddin.asp).
remove the ok and cancel buttons from the form, and add the following controls to the form:
control type property value form name frmaddin caption code line counter label name lblproject caption project textbox name txtproject label name lblcomponent caption component textbox name txtcomponent commandbutton name cmdcountcodelines caption count code lines commandbutton name cmddone caption done label name lblcodelines caption code lines textbox name txtcodelines