2005年6月14日

摘要: 不过可以用alt+E+V+M/alt+E+V+E来间接实现。还是乖乖地用'吧…… 阅读全文

posted @ 2005-06-14 15:01 岳洋 阅读(441) 评论(0) 推荐(0)

摘要: 今天编程的时候去了msdn那里看,需要控件数组。结果几乎把它的buttonarray改成我需要的labelarray后,来了一个关于hostform“对非共享成员的引用要求对象引用。”我已经声明了它是system.windows.forms.form,这是乍回事啊……看了很多跟这个错误有关的帖子,没有发现什么,倒是对form有了更深一层的理解。只是……有的时候,比如说代码copy的时候,会经常遇见... 阅读全文

posted @ 2005-06-14 14:39 岳洋 阅读(2681) 评论(0) 推荐(0)


2005年6月13日

摘要: form1.vbPublic Class Form1 Inherits System.Windows.Forms.Form#Region "变量声明" Const MedicineMaxiumNumber = 10 Const BateriaMaxiumNumber = 100 Public CurrentMedicine As Byte Public med(Med... 阅读全文

posted @ 2005-06-13 12:16 岳洋 阅读(430) 评论(0) 推荐(0)

摘要: (仅供初学者参考)当然,还有一个arraylist的方法,不过我还没有开始尝试,就暂时不写了。对于类数组来说,以下的实例化方式是行不通的:test.vb:public class testform1.vb:public testform(10) as new testnew本来就不支持数组嘛。那好,我们就一个一个来:for i=0 to 9redim testform(10) as new tes... 阅读全文

posted @ 2005-06-13 10:53 岳洋 阅读(735) 评论(0) 推荐(0)


2005年6月12日

摘要: Public Class Form1 Inherits System.Windows.Forms.Form#Region "变量声明" Public Structure medicine Public area As Byte Public killrate As Byte End Structure Public Structure bacte... 阅读全文

posted @ 2005-06-12 18:33 岳洋 阅读(420) 评论(0) 推荐(0)


2005年6月9日

摘要: Public Class Form1Class Form1 Inherits System.Windows.Forms.Form Public Structure medicineStructure medicine Public area As Byte Public killrate As Byte End Structure Public... 阅读全文

posted @ 2005-06-09 22:40 岳洋 阅读(572) 评论(0) 推荐(0)


2005年6月2日

摘要: Public Class unitsClass units Private hp As Integer Private lc As System.Drawing.PointEnd ClassPublic Class monocirclistClass monocirclist Inherits circlistEnd ClassPublic Class bicirclistCl... 阅读全文

posted @ 2005-06-02 21:59 岳洋 阅读(394) 评论(0) 推荐(0)

摘要: 类继承 public Class Maleclass Male inherits Humanend class男人和女人的区别在哪里呢?就是男人不能生小孩。所以我们可以在Male类中把Human里的Born函数重写一下,使其更适合Male。不过在这之前,我们要把Human中的Born函数加上一个修饰符overridable(可重写的): public overridable Functi... 阅读全文

posted @ 2005-06-02 21:52 岳洋 阅读(449) 评论(0) 推荐(0)


2005年6月1日

摘要: Public Class baseClass base Public belongs_player As Byte Public number As Byte Public level As Boolean Public hp As Int16 Public x As Int16 Public y As Int16 Public money As Int... 阅读全文

posted @ 2005-06-01 18:32 岳洋 阅读(383) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3