Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
QuestionPictureBox Pin
PHDENG815-Oct-05 4:24
PHDENG815-Oct-05 4:24 
AnswerRe: PictureBox Pin
Niklas Ulvinge5-Oct-05 5:03
Niklas Ulvinge5-Oct-05 5:03 
AnswerRe: PictureBox Pin
Anudeep Jaiswal - MCA7-Sep-10 7:10
Anudeep Jaiswal - MCA7-Sep-10 7:10 
QuestionApache & C# Web Pages Pin
StrayGrey5-Oct-05 3:24
StrayGrey5-Oct-05 3:24 
AnswerRe: Apache & C# Web Pages Pin
enjoycrack5-Oct-05 14:28
enjoycrack5-Oct-05 14:28 
QuestionApache & C# Web Pages Pin
StrayGrey5-Oct-05 3:19
StrayGrey5-Oct-05 3:19 
AnswerRe: Apache & C# Web Pages Pin
Daniel Turini5-Oct-05 3:39
Daniel Turini5-Oct-05 3:39 
QuestionHow do I delay Windows shutdown with a Console Project in .NET? Pin
DavidWGriffin5-Oct-05 3:05
DavidWGriffin5-Oct-05 3:05 
Ok, so here is the problem. I'm working on a headless server program
implemented as a .NET C# Console project. There is a UPS mounted to
this server (though not a windows compliant UPS). I can only talk to
the UPS over a special device driver.


Through this device driver I can detect that the UPS is going to notify
Windows 2000 server to shut down. So I start doing a graceful
termination. But Windows shuts down pretty quickly and there isn't time
to close my files and gracefully shut down. Apparently, the default
console application in .NET has a default behavior of terminating
immediately -- at least that is what seems to happen.


What I need to do is to delay windows for long enough (just a few
seconds really) so that I can gracefully terminate. How do I do that
with a console project? How do I delay the time between the time that
Windows 200 Server is told to shut down and the time it actually
teminates it's applications and shuts down? I've done a lot of web
searches and .NET searches but haven't found a console solution. Maybe
all I need is a steer to the right approach.


Thanks.




David W. Griffin
Lockheed Martin Aeronautics Company
AnswerRe: How do I delay Windows shutdown with a Console Project in .NET? Pin
DavidWGriffin5-Oct-05 12:05
DavidWGriffin5-Oct-05 12:05 
QuestionCrystal Reports with Multiple Values Pin
dbetting5-Oct-05 2:45
dbetting5-Oct-05 2:45 
QuestionHow to populate bool array with all true values Pin
jills5-Oct-05 2:39
jills5-Oct-05 2:39 
AnswerRe: How to populate bool array with all true values Pin
Stefan Troschuetz5-Oct-05 4:17
Stefan Troschuetz5-Oct-05 4:17 
GeneralRe: How to populate bool array with all true values Pin
jills5-Oct-05 19:38
jills5-Oct-05 19:38 
GeneralRe: How to populate bool array with all true values Pin
Stefan Troschuetz8-Oct-05 1:42
Stefan Troschuetz8-Oct-05 1:42 
Questionremote information processing Pin
andre.pietsch5-Oct-05 1:46
andre.pietsch5-Oct-05 1:46 
QuestionImage Rotation Pin
PHDENG815-Oct-05 1:39
PHDENG815-Oct-05 1:39 
Questionmove form without title bar Pin
Rizwan Bashir4-Oct-05 23:59
Rizwan Bashir4-Oct-05 23:59 
AnswerRe: move form without title bar Pin
PHDENG815-Oct-05 1:31
PHDENG815-Oct-05 1:31 
Questionjoining excel sheet to c#(Ado.net) but giving error Pin
Member 23064614-Oct-05 23:23
Member 23064614-Oct-05 23:23 
QuestionHow To Convert IHTMLElement to IHTMLElementRender Pin
prochf4-Oct-05 22:04
prochf4-Oct-05 22:04 
QuestionNeed a recursive logic Pin
Chetan Ranpariya4-Oct-05 21:34
Chetan Ranpariya4-Oct-05 21:34 
QuestionProcess terminating event Pin
Prashant Gadhave4-Oct-05 21:31
Prashant Gadhave4-Oct-05 21:31 
AnswerRe: Process terminating event Pin
Stefan Troschuetz4-Oct-05 21:55
Stefan Troschuetz4-Oct-05 21:55 
QuestionAsynchronous Callback Pin
Member 22045224-Oct-05 20:53
Member 22045224-Oct-05 20:53 
AnswerRe: Asynchronous Callback Pin
Stefan Troschuetz4-Oct-05 22:14
Stefan Troschuetz4-Oct-05 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.