字典类是一个很重要的类,尤其是对于数据的简单存储,查询,和处理. 废话不多说,简单记录下我探索的结果. 1. Dictionary内部索引是0基的.也就是说第一个元素的序号是0. 2. Public Class DictionaryTryMain Private Sub btnClassBase_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClassBase.Click Dim dicT…
Public Class KeyBinder Public Sub BindControl(ByRef CControl As TextBox) AddHandler CControl.KeyDown, AddressOf TextKeyDown End Sub Private Sub TextKeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) MsgBox(sender) Dim txtCo…