Click here to Skip to main content
15,884,012 members
Home / Discussions / C#
   

C#

 
QuestionHow to implement class /component Versioning using abstract class in c# Pin
Tridip Bhattacharjee10-Feb-16 21:51
professionalTridip Bhattacharjee10-Feb-16 21:51 
AnswerRe: How to implement class /component Versioning using abstract class in c# Pin
Richard MacCutchan10-Feb-16 22:03
mveRichard MacCutchan10-Feb-16 22:03 
GeneralRe: How to implement class /component Versioning using abstract class in c# Pin
Tridip Bhattacharjee11-Feb-16 21:50
professionalTridip Bhattacharjee11-Feb-16 21:50 
GeneralRe: How to implement class /component Versioning using abstract class in c# Pin
Richard MacCutchan11-Feb-16 22:14
mveRichard MacCutchan11-Feb-16 22:14 
QuestionHow to red variable continuously Pin
Zefir110-Feb-16 20:34
Zefir110-Feb-16 20:34 
AnswerRe: How to red variable continuously Pin
OriginalGriff10-Feb-16 20:50
mveOriginalGriff10-Feb-16 20:50 
GeneralRe: How to red variable continuously Pin
Zefir110-Feb-16 21:20
Zefir110-Feb-16 21:20 
GeneralRe: How to red variable continuously Pin
OriginalGriff10-Feb-16 21:38
mveOriginalGriff10-Feb-16 21:38 
Well...that code reads from the PLC only once (when the form loads) and then closes and Disposes your channel immediately.
So when the form is displayed, the PLC isn't communicating with the application at all - and couldn't if it wanted to because the connection isn't there any more.

Probably, you want to move that into a different thread, and make it loop to read the values, and then update the textboxes.

I'd suggest that you look at a BackgroundWorker[^] as that allows you to use the Progress to pass the messages back to the main thread for display (you can't change UI items from any thread except the main thread) via the BackgroundWorker.ProgressChanged Event (System.ComponentModel)[^] - the ProgressChangedEventArgs contains a UserState property you can transfer it in.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

QuestionFTP vs SCP Pin
Kevin Marois10-Feb-16 7:42
professionalKevin Marois10-Feb-16 7:42 
AnswerRe: FTP vs SCP Pin
Richard Deeming10-Feb-16 10:11
mveRichard Deeming10-Feb-16 10:11 
GeneralRe: FTP vs SCP Pin
Kevin Marois10-Feb-16 10:29
professionalKevin Marois10-Feb-16 10:29 
GeneralRe: FTP vs SCP Pin
Eddy Vluggen10-Feb-16 10:41
professionalEddy Vluggen10-Feb-16 10:41 
QuestionBeginner on TCP Server/Client Implementation Pin
Member 1018338210-Feb-16 6:18
Member 1018338210-Feb-16 6:18 
QuestionProgrammatically login to website that uses 2 steps. Pin
Dralken10-Feb-16 2:18
Dralken10-Feb-16 2:18 
AnswerRe: Programmatically login to website that uses 2 steps. Pin
OriginalGriff10-Feb-16 4:14
mveOriginalGriff10-Feb-16 4:14 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
Dralken10-Feb-16 4:30
Dralken10-Feb-16 4:30 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
Luc Pattyn11-Feb-16 0:29
sitebuilderLuc Pattyn11-Feb-16 0:29 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
OriginalGriff11-Feb-16 0:35
mveOriginalGriff11-Feb-16 0:35 
SuggestionRe: Programmatically login to website that uses 2 steps. Pin
Richard Deeming10-Feb-16 4:16
mveRichard Deeming10-Feb-16 4:16 
AnswerRe: Programmatically login to website that uses 2 steps. Pin
V.10-Feb-16 20:21
professionalV.10-Feb-16 20:21 
QuestionIssue with Serial Port class Pin
Member 120616009-Feb-16 23:13
Member 120616009-Feb-16 23:13 
SuggestionRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 0:14
mveRichard MacCutchan10-Feb-16 0:14 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 0:23
Member 1206160010-Feb-16 0:23 
GeneralRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 0:30
mveRichard MacCutchan10-Feb-16 0:30 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 0:38
Member 1206160010-Feb-16 0:38 

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.