This works passing iSleepdelay in the constructor to make a new thread sleep. I have not been able to get a VB version working.
the to make it sleep
The online code convertors didn't help.
Any help appreciated in converting this to VB.NET
Thank you,
Marty
Code:
public class Sleep
{
private Int32 _iSleepDelay;
public Sleep(Int32 iSleepDelay)
{
this._iSleepDelay = iSleepDelay;
}
public void Start()
{
new Thread(new ThreadStart(ThreadSleep)).Start();
}
public void ThreadSleep()
{
System.Threading.Thread.Sleep(_iSleepDelay * 1000);
}
}
Code:
new Sleep(iSleepDelay).Start();
Any help appreciated in converting this to VB.NET
Thank you,
Marty