您好,
从您给的代码片段中,似乎你们重新继承了Spread后使用的。
因为代码不全,我猜把您的MyBase_TopChange 和MyBase_LeftChange事件处理器修改成
Private Sub MyBase_TopChange(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.TopChangeEventArgs) Handles Me.TopChange
RaiseEvent MyBase.TopChange(sender, e)
End Sub
Private Sub MyBase_LeftChange(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.LeftChangeEventArgs) Handles Me.LeftChange
RaiseEvent MyBase.LeftChange(sender, e)
End Sub
或者修改成如下,并增加TopChange和LeftChange事件处理器就行了 :
Public Event TopChange(sender As Object, e As FarPoint.Win.Spread.TopChangeEventArgs)
Public Event LeftChange(sender As Object, e As FarPoint.Win.Spread.LeftChangeEventArgs)
Private Sub MyBase_TopChange(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.TopChangeEventArgs) Handles Me.TopChange
RaiseEvent TopChange(sender, e)
End Sub
Private Sub MyBase_LeftChange(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.LeftChangeEventArgs) Handles Me.LeftChange
RaiseEvent LeftChange(sender, e)
End Sub
如果还不行,请设法制作一个demo,发到帖子上,我们帮您分析。 |