06 2005 档案

摘要:Public Class Form1 Inherits System.Windows.Forms.Form Dim poem() As String Dim i, sum, current, MaxPoemNumber As Integer Dim CurrentPoem As String Dim ro As System.Random #Region " Wind... 阅读全文

posted @ 2005-06-27 12:03 岳洋 阅读(442) 评论(0) 推荐(0) |

摘要:Public Class Form1 Inherits System.Windows.Forms.Form Dim poem() As String Dim i, sum, current, MaxPoemNumber As Integer Dim CurrentPoem As String Dim ro As System.Random #Region " Wind... 阅读全文

posted @ 2005-06-26 19:01 岳洋 阅读(511) 评论(0) 推荐(0) |

摘要:form1:Public Class Form1 Inherits System.Windows.Forms.Form#Region "变量声明" Public MedicineMaxiumNumber As Integer = 10 Public BacteriaMaxiumNumber As Integer = 1000 Public CurrentMedicine A... 阅读全文

posted @ 2005-06-15 14:36 岳洋 阅读(468) 评论(0) 推荐(0) |

摘要:可惜没有发布的地方…… 阅读全文

posted @ 2005-06-15 14:26 岳洋 阅读(350) 评论(0) 推荐(0) |

摘要:Private components As System.ComponentModel.IContainer Friend WithEvents PauseButton As System.Windows.Forms.Button Private Sub InitializeComponent()Sub InitializeComponent() Me.Paus... 阅读全文

posted @ 2005-06-14 21:01 岳洋 阅读(401) 评论(0) 推荐(0) |

摘要:窗体设计器已经不知道多少次把我辛辛苦苦打出来的代码抹杀掉了,难怪会说“请勿在代码修改器里面修改这些代码”!不过发现了一些东西,要调用那些button之类的东西,在class form1中随时在什么地方都可以用me.xxx来实现。还有一个关于form.MousePosition的,哈哈tony你上次提出的东西难不倒我了…… 阅读全文

posted @ 2005-06-14 20:38 岳洋 阅读(463) 评论(0) 推荐(0) |

摘要:删除的内容: 'Friend WithEvents Label13 As System.Windows.Forms.Label 'Friend WithEvents Label15 As System.Windows.Forms.Label 'Friend WithEvents Label10 As System.Windows.Forms.Label 'Friend With... 阅读全文

posted @ 2005-06-14 19:52 岳洋 阅读(449) 评论(0) 推荐(0) |

摘要:正当我大刀阔斧地把控件编程控件数组的时候,注释了很多行,其中有一行位于窗体设计的是这个样子的: Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button1, Me.TextBox5, Me.label23, Me.Label22, Me.Label18, Me.Label17, Me.Button2, Me.StartB... 阅读全文

posted @ 2005-06-14 15:31 岳洋 阅读(439) 评论(0) 推荐(0) |

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

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

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

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

摘要: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 岳洋 阅读(435) 评论(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 岳洋 阅读(736) 评论(0) 推荐(0) |

摘要: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 岳洋 阅读(423) 评论(0) 推荐(0) |

摘要: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) |

摘要: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 岳洋 阅读(396) 评论(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 岳洋 阅读(450) 评论(0) 推荐(0) |

摘要: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 岳洋 阅读(384) 评论(0) 推荐(0) |

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