Click here to Skip to main content
15,907,183 members
Home / Discussions / C#
   

C#

 
QuestionCannot view data entry table in ReportViewer [modified] Pin
Ramith Sivanarain10-Oct-06 4:21
Ramith Sivanarain10-Oct-06 4:21 
Questionquestion about port scanning Pin
Green Fuze10-Oct-06 3:56
Green Fuze10-Oct-06 3:56 
AnswerRe: question about port scanning Pin
mikone10-Oct-06 4:43
mikone10-Oct-06 4:43 
GeneralRe: question about port scanning Pin
Green Fuze12-Oct-06 14:28
Green Fuze12-Oct-06 14:28 
QuestionFilter a Record "Partial key search" Pin
aranhamarvel10-Oct-06 3:10
aranhamarvel10-Oct-06 3:10 
AnswerRe: Filter a Record "Partial key search" Pin
baerten10-Oct-06 4:33
baerten10-Oct-06 4:33 
GeneralRe: Filter a Record "Partial key search" Pin
aranhamarvel10-Oct-06 6:31
aranhamarvel10-Oct-06 6:31 
QuestionClickonce deployment Pin
Wajihs10-Oct-06 1:14
Wajihs10-Oct-06 1:14 
AnswerRe: Clickonce deployment Pin
Judah Gabriel Himango10-Oct-06 5:12
sponsorJudah Gabriel Himango10-Oct-06 5:12 
QuestionQuestions on .NET Remoting Pin
Robert Rohde10-Oct-06 0:59
Robert Rohde10-Oct-06 0:59 
AnswerRe: Questions on .NET Remoting Pin
S. Senthil Kumar10-Oct-06 2:51
S. Senthil Kumar10-Oct-06 2:51 
AnswerRe: Questions on .NET Remoting Pin
sathish s10-Oct-06 3:18
sathish s10-Oct-06 3:18 
AnswerRe: Questions on .NET Remoting Pin
mav.northwind10-Oct-06 5:36
mav.northwind10-Oct-06 5:36 
QuestionHow to create a shortcut for my application Pin
CJayMeister10-Oct-06 0:38
CJayMeister10-Oct-06 0:38 
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 

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.