摘要: 下面演示下怎样在VB定义事件:1. 新建一个VB EXE 工程.2. 添加一个类,命名为ITest,代码为:Option ExplicitPublic Event TestEvent()Public Function TestFunction() As Boolean RaiseEvent TestEventEnd Function3. 添加一个窗体,命名为frmMain,在窗体上放置一个Butt... 阅读全文
posted @ 2009-03-20 22:22 Kwoksun 阅读(434) 评论(0) 推荐(0) 编辑
摘要: C#定义接口大家都接触比较多,但VB定义接口大家可能接触比较少。下面就定义VB接口,结合一个工程讲一下:1. 新建一个VB EXE 工程。2. 添加一个类,命名为ITest, 代码为:Option ExplicitPublic Function TestFunction() As Boolean End Function3. 添加一个类,命名为clsTest1,代码为:Option Explici... 阅读全文
posted @ 2009-03-20 21:54 Kwoksun 阅读(1159) 评论(0) 推荐(0) 编辑