Create Your Own Visual Basic Add-Ins[2]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 sonicdater 的 blog

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

本文关键:Create Your Own Visual Basic Add-Ins
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top