Disabling power shutdown

  • Thread starter Thread starter bic
  • Start date Start date
B

bic

I have a long process, during the process the power goes off. Anyone
got code to disable this in VB.NET, I had some C# but never got it to
work.
 
Well, it's about as close as you should need. If you don't like C#, then
port it to VB.NET. Otherwise, just write the code in C# into a .cs file in
your project and call it. It's a bit much to expect every useful piece of
code on Earth to be rewritten in your favorite language...

Paul T.

bic said:
"Paul G. Tobey [eMVP]" <ptobey_no_spam@instrument_no_spam.com> wrote in
message news: said:
When you say that "...the power goes off.", are you saying that the device
suspends or that power is literally lost?

Here's a thread from the archives about preventing suspend:
http://groups.google.com/groups?hl=...soft.public.dotnet.framework.compactframework

Yes.. I have seen that.. but that's not in VB .NET.. I need something
in vb .net that works.
 
Back
Top