VB.NET里的 Inherits System.Windows.Forms.Form

来源:百度知道 编辑:UC知道 时间:2024/05/31 05:37:10
Inherits System.Windows.Forms.Form是什么意思?

继承 System.Windows.Forms.Form
.Net里,有很多命名空间
System是最大的一个
Windows是system里的一个子空间
依此类推
用了上面的语句,你的一些对象的方法,就可以不写全了,直接到上面的这个命令空间里找

功能有点类似于VB6中的 With结构