Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
GeneralRe: Permanent connection with webserver Pin
Dave Kreskowiak22-Aug-09 7:38
mveDave Kreskowiak22-Aug-09 7:38 
GeneralRe: Permanent connection with webserver Pin
Xmen Real 22-Aug-09 7:40
professional Xmen Real 22-Aug-09 7:40 
GeneralRe: Permanent connection with webserver Pin
Natural_Demon22-Aug-09 8:37
Natural_Demon22-Aug-09 8:37 
GeneralRe: Permanent connection with webserver Pin
Xmen Real 22-Aug-09 16:12
professional Xmen Real 22-Aug-09 16:12 
GeneralRe: Permanent connection with webserver Pin
Natural_Demon23-Aug-09 1:22
Natural_Demon23-Aug-09 1:22 
GeneralRe: Permanent connection with webserver Pin
Natural_Demon22-Aug-09 8:51
Natural_Demon22-Aug-09 8:51 
QuestionIHTMLElement onclick event method call Pin
yogesh_softworld12322-Aug-09 3:07
yogesh_softworld12322-Aug-09 3:07 
Questionfilling a form on internet ! Pin
sajjy22-Aug-09 2:31
sajjy22-Aug-09 2:31 
AnswerRe: filling a form on internet ! Pin
Natural_Demon22-Aug-09 9:12
Natural_Demon22-Aug-09 9:12 
AnswerRe: filling a form on internet ! Pin
jbc123-Aug-09 2:26
jbc123-Aug-09 2:26 
QuestionWhat is the best way to create background application? Pin
bonzaiholding22-Aug-09 0:39
bonzaiholding22-Aug-09 0:39 
AnswerRe: What is the best way to create background application? Pin
Saksida Bojan22-Aug-09 0:47
Saksida Bojan22-Aug-09 0:47 
GeneralRe: What is the best way to create background application? Pin
bonzaiholding22-Aug-09 0:55
bonzaiholding22-Aug-09 0:55 
GeneralRe: What is the best way to create background application? Pin
Saksida Bojan22-Aug-09 0:58
Saksida Bojan22-Aug-09 0:58 
AnswerRe: What is the best way to create background application? Pin
Baeltazor22-Aug-09 6:30
Baeltazor22-Aug-09 6:30 
AnswerRe: What is the best way to create background application? Pin
Natural_Demon22-Aug-09 9:17
Natural_Demon22-Aug-09 9:17 
GeneralRe: What is the best way to create background application? Pin
Saksida Bojan22-Aug-09 12:07
Saksida Bojan22-Aug-09 12:07 
GeneralRe: What is the best way to create background application? Pin
Mycroft Holmes22-Aug-09 14:28
professionalMycroft Holmes22-Aug-09 14:28 
GeneralRe: What is the best way to create background application? Pin
Natural_Demon23-Aug-09 2:16
Natural_Demon23-Aug-09 2:16 
GeneralRe: What is the best way to create background application? Pin
Natural_Demon23-Aug-09 2:21
Natural_Demon23-Aug-09 2:21 
GeneralRe: What is the best way to create background application? Pin
Alan N23-Aug-09 4:18
Alan N23-Aug-09 4:18 
Hi,
What's your point here? Apart from the recursive call to Main there is nothing that would prevent your example from running to completion.

When a program is compiled as a console application then a window, the console, is always created. Counter intuitively a windows application only has a message loop and window if the programmer writes the appropriate code, usually
Application.Run(new Form1());.<br />

A simple windowless windows application does not show in the taskbar but will be present in Task Manager's process list.
static void Main() {
  System.IO.File.AppendAllText(
    "log.txt",
    "NoWindow started at " + System.DateTime.Now.ToString() + System.Environment.NewLine);
  System.Threading.Thread.Sleep(20 * 1000);
  System.IO.File.AppendAllText(
    "log.txt",
    "and ended at " + System.DateTime.Now.ToString() + System.Environment.NewLine);
}

Alan.
GeneralRe: What is the best way to create background application? Pin
Natural_Demon24-Aug-09 11:17
Natural_Demon24-Aug-09 11:17 
QuestionTimer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm21-Aug-09 22:58
nhqlbaislwfiikqraqnm21-Aug-09 22:58 
AnswerRe: Timer doesn´t work by Server and Client! Pin
Xmen Real 21-Aug-09 23:24
professional Xmen Real 21-Aug-09 23:24 
GeneralRe: Timer doesn´t work by Server and Client! Pin
nhqlbaislwfiikqraqnm21-Aug-09 23:32
nhqlbaislwfiikqraqnm21-Aug-09 23:32 

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.