95se5m
Member
I have a bit of code.
In VB.net 2005 SP1 this line of code:
m_AutoRotateTimer.Elapsed += New System.Timers.ElapsedEventHandler(AddressOf IncrementTransisionSegment)
will not work, it's complaining about not calling an event directly and wanting a RaiseEvent. Can anyone tell me how to modify this line to make it work? It's a bit of code I need to port from c#, works peachy in c#.
Help please...
Jim
VB.NET:
[SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]If[/COLOR][/SIZE][SIZE=2] Value = [/SIZE][SIZE=2][COLOR=#0000ff]True[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]And[/COLOR][/SIZE][SIZE=2] m_AutoRotateTimer [/SIZE][SIZE=2][COLOR=#0000ff]Is[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Then
[/COLOR][/SIZE][SIZE=2]m_AutoRotateTimer = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Timers.Timer(m_IncrementFrequency)
m_AutoRotateTimer.Elapsed += [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] System.Timers.ElapsedEventHandler([/SIZE][SIZE=2][COLOR=#0000ff]AddressOf[/COLOR][/SIZE][SIZE=2] IncrementTransisionSegment)
m_AutoRotateTimer.Start()
[/SIZE][SIZE=2][COLOR=#0000ff]End[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]If
[/COLOR][/SIZE]
In VB.net 2005 SP1 this line of code:
m_AutoRotateTimer.Elapsed += New System.Timers.ElapsedEventHandler(AddressOf IncrementTransisionSegment)
will not work, it's complaining about not calling an event directly and wanting a RaiseEvent. Can anyone tell me how to modify this line to make it work? It's a bit of code I need to port from c#, works peachy in c#.
Help please...
Jim