能帮忙把vc改成vb.NET吗?
event EventHandler _MyEvent;、
public event EventHandler MyEvent
{
add
{
_MyEvent += value;
}
remove
{
_MyEvent -= value;
}
}
public void MyEvent()
{
if (_MyEvent != null)
{
_MyEvent(this,new EventArgs());
}
}
[最优解释]
Public Event MyEvent(ByVal sender As Object, ByVal e As EventArgs)
Public Sub MyEvent()
RaiseEvent MyEvent(Me, New EventArgs())
End Sub