Click here to Skip to main content
15,894,646 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create a shortcut for my application Pin
g00fyman10-Oct-06 1:24
g00fyman10-Oct-06 1:24 
GeneralRe: How to create a shortcut for my application Pin
CJayMeister10-Oct-06 2:00
CJayMeister10-Oct-06 2:00 
Questionhow to take a screenShot using windows service Pin
Tariq Tario10-Oct-06 0:24
Tariq Tario10-Oct-06 0:24 
AnswerRe: how to take a screenShot using windows service Pin
g00fyman10-Oct-06 1:14
g00fyman10-Oct-06 1:14 
GeneralRe: how to take a screenShot using windows service Pin
Eric Dahlvang10-Oct-06 3:46
Eric Dahlvang10-Oct-06 3:46 
GeneralRe: how to take a screenShot using windows service Pin
Member 79236113-Jul-18 18:53
Member 79236113-Jul-18 18:53 
QuestionPassive/Active listening server Pin
The underdog9-Oct-06 23:53
The underdog9-Oct-06 23:53 
AnswerRe: Passive/Active listening server Pin
mikone10-Oct-06 0:01
mikone10-Oct-06 0:01 
In generally you solve this problem by using loops. Make a button "Start listening" which sets a bool variable, lets call it KeepListening, to true and call the listenfunction which contains a loop like

while (KeepListening)
{
// Put Receive-Code in here...
System.Threading.Thread.Sleep(10);
}

Now the second button sets the variable KeepListening to false. If you click it, the application will leave the loop.

If you want to make your application listen to incoming traffic and also being available for user inputs, you will have to use threads (create a listening thread).

There are nice threading-tutorials out there if you aren't familiar with threading at all. I'm too lazy/busy to search for a nice explanation but i will do if you are not successful.

Lets sum it up:
- You will have to use a Loop to listen all the time.
- You will have to make use of the multithreading if your application should be available for other tasks while listening.

Good luck,
mik Smile | :)
GeneralRe: Passive/Active listening server Pin
The underdog10-Oct-06 0:26
The underdog10-Oct-06 0:26 
GeneralRe: Passive/Active listening server Pin
mikone10-Oct-06 0:56
mikone10-Oct-06 0:56 
GeneralRe: Passive/Active listening server Pin
The underdog10-Oct-06 2:23
The underdog10-Oct-06 2:23 
GeneralRe: Passive/Active listening server [modified] Pin
mikone10-Oct-06 2:52
mikone10-Oct-06 2:52 
QuestionGarbage Collector Performence Pin
Mandaar Kulkarni9-Oct-06 22:57
Mandaar Kulkarni9-Oct-06 22:57 
AnswerRe: Garbage Collector Performence Pin
quiteSmart9-Oct-06 23:16
quiteSmart9-Oct-06 23:16 
AnswerRe: Garbage Collector Performence Pin
S. Senthil Kumar10-Oct-06 2:55
S. Senthil Kumar10-Oct-06 2:55 
QuestionTabPage Events do not fire w/ .Net1.1 Pin
Jeff Jordan9-Oct-06 22:21
Jeff Jordan9-Oct-06 22:21 
AnswerRe: TabPage Events do not fire w/ .Net1.1 Pin
quiteSmart9-Oct-06 22:46
quiteSmart9-Oct-06 22:46 
GeneralRe: TabPage Events do not fire w/ .Net1.1 Pin
Jeff Jordan9-Oct-06 23:06
Jeff Jordan9-Oct-06 23:06 
GeneralRe: TabPage Events do not fire w/ .Net1.1 Pin
mikone10-Oct-06 0:06
mikone10-Oct-06 0:06 
GeneralRe: TabPage Events do not fire w/ .Net1.1 Pin
Jeff Jordan10-Oct-06 0:15
Jeff Jordan10-Oct-06 0:15 
Questionisnumeric in c# Pin
Amar Chaudhary9-Oct-06 22:16
Amar Chaudhary9-Oct-06 22:16 
AnswerRe: isnumeric in c# Pin
mikone9-Oct-06 22:27
mikone9-Oct-06 22:27 
GeneralRe: isnumeric in c# Pin
Amar Chaudhary10-Oct-06 0:20
Amar Chaudhary10-Oct-06 0:20 
GeneralRe: isnumeric in c# Pin
Martin#10-Oct-06 1:58
Martin#10-Oct-06 1:58 
GeneralIve heard that before Pin
Ennis Ray Lynch, Jr.10-Oct-06 16:40
Ennis Ray Lynch, Jr.10-Oct-06 16:40 

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.