Hi,
I am a newbie to vb.net, I have converted C# code to vb.net using the online converter tools. I have got rid of all the error messages but there is one I can't seem to figure out. Any ideas or help is appreciated.
The line marked in bold (above) is where this error (shown below) comes up
Error 1 'Public Event Completed(sende r As Object, e As System.EventArg s)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. C:\Documents and Settings\Tempor ary Projects\FishEy ePanel.vb 292 17
Many Thanks
@nand
I am a newbie to vb.net, I have converted C# code to vb.net using the online converter tools. I have got rid of all the error messages but there is one I can't seem to figure out. Any ideas or help is appreciated.
Code:
Private Function MakeAnimation(ByVal [to] As Double, ByVal duration As Double, ByVal endEvent As EventHandler) As DoubleAnimation
Dim anim As New DoubleAnimation([to], TimeSpan.FromMilliseconds(duration))
anim.AccelerationRatio = 0.2
anim.DecelerationRatio = 0.7
If endEvent IsNot Nothing Then
[B]anim.Completed += endEvent[/B]
End If
Return anim
End Function
Error 1 'Public Event Completed(sende r As Object, e As System.EventArg s)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. C:\Documents and Settings\Tempor ary Projects\FishEy ePanel.vb 292 17
Many Thanks
@nand
Comment