Avatar of rwallacej
rwallacej
 asked on

C# to VB.net please Handler

convert to C# please

_Timer.Elapsed += New ReportEventHandler(AddressOf _Timer_Elapsed)
_Timer. += New ExceptionEventHandler(AddressOf )
C#.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
rwallacej

8/22/2022 - Mon
dsacker

This shows you the bare skeleton. Change where needed:
public void CreateTimer() 
{
    var _Timer = new System.Timers.Timer(1000); // fire every 1 second
    _Timer.Elapsed += ReportEventHandler;
}

public void ReportEventHandler(object sender, ElapsedEventArgs e)
{
    // do whatever it is that you need to do on a timer
}

Open in new window

There is no equivalent _Timer..
ASKER CERTIFIED SOLUTION
Jacques Bourgeois (James Burger)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rwallacej

ASKER
sorry contradiction but yet I was trying to convert C# to VB.net

Timer here is 3rd party app

I used to use www.developerfusion.com/tools/convert/csharp-to-vb/
but this never works now, even simplest tasks
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck