Ron,
Take a look at the ManualResetEvent and AutoResetEvent classes. They
both derive from WaitHandle, which has static methods which will allow you
to wait on those handles to be set.
Subsequently, you can also set the Handle property of one of these event
classes to a handle returned from CreateEvent (or wherever you get it from)
so that you can use the managed representation of it.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
ni**************@exisconsulting.com
"R A" <ro****@hotmail.com> wrote in message
news:uD**************@TK2MSFTNGP09.phx.gbl...
Hi
How do I create Event handle same as using the win32 CreateEvent? I need
the .net app (c#) to wait for event (such as win 32 waitforsingleobject api).
Thanks,
Ron