Click here to Skip to main content
15,914,221 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to sort datagridview ? (a numeric field) Pin
velkropie9-Jul-07 6:24
velkropie9-Jul-07 6:24 
AnswerRe: how to sort datagridview ? (a numeric field) Pin
Luc Pattyn9-Jul-07 7:12
sitebuilderLuc Pattyn9-Jul-07 7:12 
QuestionHow do I Marshal Vector using Pinvoke Pin
Subodh Borker9-Jul-07 4:41
Subodh Borker9-Jul-07 4:41 
QuestionCrystal Reports Gurus - need help - please Pin
Rome'9-Jul-07 4:27
Rome'9-Jul-07 4:27 
QuestionUdp client Programming Pin
ramdil9-Jul-07 3:57
ramdil9-Jul-07 3:57 
AnswerRe: Udp client Programming Pin
Jimmanuel9-Jul-07 4:18
Jimmanuel9-Jul-07 4:18 
GeneralRe: Udp client Programming Pin
ramdil9-Jul-07 4:41
ramdil9-Jul-07 4:41 
GeneralRe: Udp client Programming Pin
Jimmanuel9-Jul-07 4:52
Jimmanuel9-Jul-07 4:52 
That's exactly what I meant! To stop listening all you have to so is set that var to false and continue on your way.

The comment about waiting for the thread is because I was running that method in a separate Thread from the gui thread. When I was shutting down my gui I wanted to make sure that the listener thread exited so that it wouldn't hang up my application. The Thread.Join() method waits for a thread to exit, so my socket shutdown code looked like this:
UDPrunning = false;
udpSocketThread.Join();
udpSocket.Close();



GeneralRe: Udp client Programming Pin
Luc Pattyn9-Jul-07 5:05
sitebuilderLuc Pattyn9-Jul-07 5:05 
GeneralRe: Udp client Programming Pin
ramdil9-Jul-07 5:12
ramdil9-Jul-07 5:12 
GeneralRe: Udp client Programming Pin
Jimmanuel9-Jul-07 5:20
Jimmanuel9-Jul-07 5:20 
GeneralRe: Disconnecting your Ethernet may keep your app alive ! Pin
Luc Pattyn9-Jul-07 5:56
sitebuilderLuc Pattyn9-Jul-07 5:56 
GeneralRe: Disconnecting your Ethernet may keep your app alive ! Pin
Jimmanuel9-Jul-07 6:34
Jimmanuel9-Jul-07 6:34 
GeneralRe: Udp client Programming Pin
ramdil9-Jul-07 5:14
ramdil9-Jul-07 5:14 
GeneralRe: Udp client Programming Pin
Jimmanuel9-Jul-07 5:23
Jimmanuel9-Jul-07 5:23 
GeneralRe: Udp client Programming Pin
ramdil9-Jul-07 5:38
ramdil9-Jul-07 5:38 
GeneralRe: Udp client Programming Pin
Luc Pattyn9-Jul-07 5:56
sitebuilderLuc Pattyn9-Jul-07 5:56 
GeneralRe: Udp client Programming Pin
ramdil9-Jul-07 22:02
ramdil9-Jul-07 22:02 
GeneralRe: Udp client Programming Pin
Jimmanuel9-Jul-07 6:36
Jimmanuel9-Jul-07 6:36 
QuestionColoring Specific ComboBox Entries Pin
PhilDanger9-Jul-07 3:40
PhilDanger9-Jul-07 3:40 
AnswerRe: Coloring Specific ComboBox Entries Pin
Vasudevan Deepak Kumar9-Jul-07 3:45
Vasudevan Deepak Kumar9-Jul-07 3:45 
GeneralRe: Coloring Specific ComboBox Entries Pin
PhilDanger9-Jul-07 3:52
PhilDanger9-Jul-07 3:52 
AnswerRe: Coloring Specific ComboBox Entries Pin
Luc Pattyn9-Jul-07 3:56
sitebuilderLuc Pattyn9-Jul-07 3:56 
GeneralRe: Coloring Specific ComboBox Entries Pin
PhilDanger9-Jul-07 4:11
PhilDanger9-Jul-07 4:11 
GeneralRe: Coloring Specific ComboBox Entries Pin
Luc Pattyn9-Jul-07 4:14
sitebuilderLuc Pattyn9-Jul-07 4:14 

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.