Click here to Skip to main content
15,884,099 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# application slow to response after period of inactivity Pin
Paulo Zemek1-Nov-09 2:57
mvaPaulo Zemek1-Nov-09 2:57 
QuestionHow to show "Press any key to Continue" Pin
yakupc30-Oct-09 3:41
yakupc30-Oct-09 3:41 
AnswerRe: How to show "Press any key to Continue" Pin
Richard MacCutchan30-Oct-09 3:55
mveRichard MacCutchan30-Oct-09 3:55 
GeneralRe: How to show "Press any key to Continue" Pin
vtchris-peterson30-Oct-09 4:14
vtchris-peterson30-Oct-09 4:14 
GeneralRe: How to show "Press any key to Continue" Pin
yakupc30-Oct-09 4:18
yakupc30-Oct-09 4:18 
AnswerRe: How to show "Press any key to Continue" PinPopular
Luc Pattyn30-Oct-09 3:56
sitebuilderLuc Pattyn30-Oct-09 3:56 
GeneralRe: How to show "Press any key to Continue" Pin
dojohansen31-Oct-09 22:42
dojohansen31-Oct-09 22:42 
AnswerRe: How to show "Press any key to Continue" Pin
vtchris-peterson30-Oct-09 4:31
vtchris-peterson30-Oct-09 4:31 
Alternate implementation. I actually think the other solution is better, but I was curious if this would work (and it does). Note that UseShellExecute is important, otherwise the process is opened in a new window. The disadvantage is that you're more tightly coupled with the OS (i.e. it wouldn't work under Mono on a non MS-platform)

using System.Diagnostics;

   // ...

   ProcessStartInfo psi = new ProcessStartInfo("cmd", "/c pause");
   psi.UseShellExecute = false;         
   Process.Start(psi).WaitForExit();

AnswerRe: How to show "Press any key to Continue" Pin
PIEBALDconsult30-Oct-09 4:40
mvePIEBALDconsult30-Oct-09 4:40 
GeneralRe: How to show "Press any key to Continue" Pin
Luc Pattyn30-Oct-09 6:28
sitebuilderLuc Pattyn30-Oct-09 6:28 
GeneralRe: How to show "Press any key to Continue" Pin
PIEBALDconsult30-Oct-09 7:18
mvePIEBALDconsult30-Oct-09 7:18 
QuestionSQLite Pin
jashimu30-Oct-09 3:04
jashimu30-Oct-09 3:04 
AnswerRe: SQLite Pin
Not Active30-Oct-09 3:20
mentorNot Active30-Oct-09 3:20 
AnswerMessage Closed Pin
30-Oct-09 4:04
stancrm30-Oct-09 4:04 
GeneralRe: SQLite Pin
jashimu30-Oct-09 5:09
jashimu30-Oct-09 5:09 
AnswerRe: SQLite Pin
Amit Patel198530-Oct-09 4:10
Amit Patel198530-Oct-09 4:10 
AnswerRe: SQLite Pin
Eddy Vluggen30-Oct-09 5:53
professionalEddy Vluggen30-Oct-09 5:53 
QuestionHow can I get the use ratio of the network of local PC? Pin
sinron30-Oct-09 2:58
sinron30-Oct-09 2:58 
AnswerMessage Closed Pin
30-Oct-09 4:56
stancrm30-Oct-09 4:56 
GeneralRe: How can I get the use ratio of the network of local PC? Pin
sinron30-Oct-09 20:10
sinron30-Oct-09 20:10 
Questionusing DHCPSetOptionValueV5 to set the option on subnet Pin
Ganesh_T30-Oct-09 2:23
Ganesh_T30-Oct-09 2:23 
QuestionCD Wrinting Pin
Amit Patel198530-Oct-09 2:05
Amit Patel198530-Oct-09 2:05 
AnswerRe: CD Wrinting Pin
Covean30-Oct-09 2:07
Covean30-Oct-09 2:07 
AnswerMessage Closed Pin
30-Oct-09 2:08
stancrm30-Oct-09 2:08 
GeneralRe: CD Wrinting Pin
Amit Patel198530-Oct-09 2:22
Amit Patel198530-Oct-09 2:22 

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.