Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: Paste Event Pin
Jacobb Michael2-Sep-09 6:50
Jacobb Michael2-Sep-09 6:50 
QuestionThe stream does not support concurrent I/O ReadWrite operations Pin
mbyamukama1-Sep-09 20:40
mbyamukama1-Sep-09 20:40 
AnswerRe: The stream does not support concurrent I/O ReadWrite operations Pin
Christian Graus1-Sep-09 21:03
protectorChristian Graus1-Sep-09 21:03 
AnswerRe: The stream does not support concurrent I/O ReadWrite operations Pin
Richard MacCutchan1-Sep-09 21:38
mveRichard MacCutchan1-Sep-09 21:38 
GeneralRe: The stream does not support concurrent I/O ReadWrite operations Pin
mbyamukama6-Sep-09 20:09
mbyamukama6-Sep-09 20:09 
GeneralRe: The stream does not support concurrent I/O ReadWrite operations Pin
Richard MacCutchan7-Sep-09 0:53
mveRichard MacCutchan7-Sep-09 0:53 
QuestionLet "Console-Application" running Pin
softwarejaeger1-Sep-09 20:37
softwarejaeger1-Sep-09 20:37 
AnswerRe: Let "Console-Application" running Pin
SeMartens1-Sep-09 21:00
SeMartens1-Sep-09 21:00 
Hi,

I would do the following. Within the Main-Method start a thread to do the main-work (whatever your application should do). After you started the thread, use a Console.ReadLine() to wait for user-input to stop the application.

It should look like this:

public static void Main(string[] args) {
  // start the thread

  while(true) {
     string input = Console.In.ReadLine();
     // check if the user entered "stop"
     if("stop".Equals(input)) {
        break;
     }
  }

  // stop the thread you've started before
}


Regards
Sebastian

It's not a bug, it's a feature!

Check out my CodeProject article Permission-by-aspect.

Me in Softwareland.

GeneralRe: Let "Console-Application" running Pin
Mycroft Holmes1-Sep-09 21:22
professionalMycroft Holmes1-Sep-09 21:22 
GeneralRe: Let "Console-Application" running Pin
SeMartens1-Sep-09 21:39
SeMartens1-Sep-09 21:39 
GeneralRe: Let "Console-Application" running Pin
PIEBALDconsult2-Sep-09 3:28
mvePIEBALDconsult2-Sep-09 3:28 
AnswerRe: Let "Console-Application" running Pin
Mirko19801-Sep-09 22:50
Mirko19801-Sep-09 22:50 
QuestionSortable gridview with comboboxes and can add/delete rows [modified] Pin
Nigel Mackay1-Sep-09 19:58
Nigel Mackay1-Sep-09 19:58 
AnswerRe: Sortable gridview with comboboxes and can add/delete rows Pin
Mycroft Holmes1-Sep-09 21:19
professionalMycroft Holmes1-Sep-09 21:19 
GeneralRe: Sortable gridview with comboboxes and can add/delete rows Pin
Nigel Mackay1-Sep-09 21:43
Nigel Mackay1-Sep-09 21:43 
GeneralRe: Sortable gridview with comboboxes and can add/delete rows Pin
Mycroft Holmes1-Sep-09 21:55
professionalMycroft Holmes1-Sep-09 21:55 
GeneralRe: Sortable gridview with comboboxes and can add/delete rows Pin
Nigel Mackay1-Sep-09 22:15
Nigel Mackay1-Sep-09 22:15 
GeneralRe: Sortable gridview with comboboxes and can add/delete rows Pin
Mycroft Holmes1-Sep-09 22:26
professionalMycroft Holmes1-Sep-09 22:26 
QuestionGetChanges() Cannot see the modifications inside dataset! Pin
sevag.m1-Sep-09 19:39
sevag.m1-Sep-09 19:39 
QuestionHow to use some part of .Net framework in my setup package? Pin
saberimanesh1-Sep-09 19:29
saberimanesh1-Sep-09 19:29 
AnswerRe: How to use some part of .Net framework in my setup package? Pin
Vimalsoft(Pty) Ltd1-Sep-09 20:49
professionalVimalsoft(Pty) Ltd1-Sep-09 20:49 
GeneralRe: How to use some part of .Net framework in my setup package? Pin
saberimanesh1-Sep-09 21:01
saberimanesh1-Sep-09 21:01 
GeneralRe: How to use some part of .Net framework in my setup package? Pin
Christian Graus1-Sep-09 21:04
protectorChristian Graus1-Sep-09 21:04 
GeneralRe: How to use some part of .Net framework in my setup package? Pin
Vimalsoft(Pty) Ltd1-Sep-09 21:05
professionalVimalsoft(Pty) Ltd1-Sep-09 21:05 
GeneralRe: How to use some part of .Net framework in my setup package? Pin
Dave Kreskowiak2-Sep-09 4:23
mveDave Kreskowiak2-Sep-09 4:23 

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.