Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
QuestionHow can I use a parsed UDP byte stream to continually update a GUI form ? Pin
flyingnome3-Aug-07 4:07
flyingnome3-Aug-07 4:07 
AnswerRe: How can I use a parsed UDP byte stream to continually update a GUI form ? Pin
martin_hughes3-Aug-07 5:17
martin_hughes3-Aug-07 5:17 
GeneralRe: How can I use a parsed UDP byte stream to continually update a GUI form ? Pin
flyingnome3-Aug-07 5:36
flyingnome3-Aug-07 5:36 
GeneralRe: How can I use a parsed UDP byte stream to continually update a GUI form ? Pin
martin_hughes3-Aug-07 5:49
martin_hughes3-Aug-07 5:49 
GeneralRe: How can I use a parsed UDP byte stream to continually update a GUI form ? Pin
flyingnome3-Aug-07 6:11
flyingnome3-Aug-07 6:11 
GeneralRe: How can I use a parsed UDP byte stream to continually update a GUI form ? Pin
martin_hughes3-Aug-07 7:07
martin_hughes3-Aug-07 7:07 
GeneralRe: How can I use a parsed UDP byte stream to continually update a GUI form ? Pin
flyingnome7-Aug-07 7:53
flyingnome7-Aug-07 7:53 
GeneralRe: How can I use a parsed UDP byte stream to continually update a GUI form ? Pin
martin_hughes7-Aug-07 12:30
martin_hughes7-Aug-07 12:30 
Well there are a number of possible options, but I think using events might be the best solution for you here.

Basically you'd setup up an Event in your Packet Listener class which fires every time a packet is received. You could then have your form listen to those events, and update accordingly, taking an an Event Argument from the fired event. You'll definintely have to look at cross threading issues (this is because having two threads update a UI is a bad idea), but this isn't too difficult, and there are some articles on CP which explain how to do this.


"It was the day before today.... I remember it like it was yesterday."

-Moleman


QuestionA error is difficult to understand Pin
nhathoang3-Aug-07 4:04
nhathoang3-Aug-07 4:04 
AnswerRe: A error is difficult to understand Pin
Colin Angus Mackay3-Aug-07 4:11
Colin Angus Mackay3-Aug-07 4:11 
AnswerRe: A error is difficult to understand Pin
Pete O'Hanlon3-Aug-07 4:14
mvePete O'Hanlon3-Aug-07 4:14 
GeneralRe: A error is difficult to understand Pin
nhathoang3-Aug-07 4:18
nhathoang3-Aug-07 4:18 
GeneralRe: A error is difficult to understand Pin
Pete O'Hanlon3-Aug-07 4:29
mvePete O'Hanlon3-Aug-07 4:29 
GeneralRe: A error is difficult to understand Pin
nhathoang3-Aug-07 7:35
nhathoang3-Aug-07 7:35 
AnswerRe: A error is difficult to understand Pin
Luc Pattyn3-Aug-07 5:56
sitebuilderLuc Pattyn3-Aug-07 5:56 
Questionhow to initiate a class stored in string variable Pin
Asif Rehman3-Aug-07 3:32
Asif Rehman3-Aug-07 3:32 
AnswerRe: how to initiate a class stored in string variable Pin
Guffa3-Aug-07 3:36
Guffa3-Aug-07 3:36 
AnswerRe: how to initiate a class stored in string variable Pin
Urs Enzler3-Aug-07 3:58
Urs Enzler3-Aug-07 3:58 
GeneralRe: how to initiate a class stored in string variable Pin
Asif Rehman3-Aug-07 4:31
Asif Rehman3-Aug-07 4:31 
GeneralRe: how to initiate a class stored in string variable Pin
CiNN3-Aug-07 7:55
CiNN3-Aug-07 7:55 
QuestionWhat is Threading ? Pin
Chintan.Desai3-Aug-07 2:49
Chintan.Desai3-Aug-07 2:49 
AnswerRe: What is Threading ? Pin
originSH3-Aug-07 2:55
originSH3-Aug-07 2:55 
GeneralRe: What is Threading ? Pin
Joseph Guadagno3-Aug-07 3:28
Joseph Guadagno3-Aug-07 3:28 
GeneralRe: What is Threading ? Pin
Talal Sultan3-Aug-07 3:55
Talal Sultan3-Aug-07 3:55 
AnswerRe: What is Threading ? Pin
Ravi Bhavnani3-Aug-07 3:29
professionalRavi Bhavnani3-Aug-07 3:29 

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.