Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
MessageBox.Show("form1_load")
End Sub
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
MessageBox.Show("ONLoad")
End Sub
上面两段代码都可以,现在是如果我用了onload 就不回调用form1_load .如果单独放的话可以,这里是什么原因吗?谢谢
MessageBox.Show("form1_load")
End Sub
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
MessageBox.Show("ONLoad")
End Sub
上面两段代码都可以,现在是如果我用了onload 就不回调用form1_load .如果单独放的话可以,这里是什么原因吗?谢谢
MyBase.OnLoad(e)
MessageBox.Show("ONLoad")
End Sub
他们功能一样
但是分别实现在不同的 CLASS中