摘要:
Public Class Form1 '定义委托 Private Delegate Sub MyMsg(ByVal str As String) '实现委托,方法签名与前面定义的委托相同 Private Sub showmsg(ByVal str As String) MessageBox.Show(str & " from showmsg") End Sub '实现另一个委托,,方法签名与前面定义的委托相同 Private Sub shownamemsg(ByVal str As String) MessageBox.Show(str &a 阅读全文