Click here to Skip to main content
15,910,980 members
Home / Discussions / C#
   

C#

 
Questioncallback vba function in c# Pin
djdjoko27-Jul-07 3:14
djdjoko27-Jul-07 3:14 
QuestionHow to change the text of a text box in form after the form is displayed to user? Pin
AmarjeetSinghMatharu27-Jul-07 3:06
AmarjeetSinghMatharu27-Jul-07 3:06 
AnswerRe: How to change the text of a text box in form after the form is displayed to user? Pin
PhilDanger27-Jul-07 3:27
PhilDanger27-Jul-07 3:27 
AnswerRe: How to change the text of a text box in form after the form is displayed to user? Pin
Luc Pattyn27-Jul-07 10:36
sitebuilderLuc Pattyn27-Jul-07 10:36 
GeneralRe: How to change the text of a text box in form after the form is displayed to user? Pin
AmarjeetSinghMatharu28-Jul-07 22:42
AmarjeetSinghMatharu28-Jul-07 22:42 
GeneralRe: How to change the text of a text box in form after the form is displayed to user? Pin
Luc Pattyn29-Jul-07 0:34
sitebuilderLuc Pattyn29-Jul-07 0:34 
GeneralRe: How to change the text of a text box in form after the form is displayed to user? Pin
AmarjeetSinghMatharu29-Jul-07 1:45
AmarjeetSinghMatharu29-Jul-07 1:45 
GeneralRe: How to change the text of a text box in form after the form is displayed to user? Pin
Luc Pattyn29-Jul-07 2:01
sitebuilderLuc Pattyn29-Jul-07 2:01 
Hi,

what I meant was: make a clear split in functionality, try to define the work
in the worker thread with a clear border; it could be "take care of serial
communication", if so it would not know what will happen to the resulting data,
it would not have to know about the GUI, etc. That's a clean approach; and
later on you could reuse the worker thread's code.

But it you give it some other definition, that can be fine too.


The warning is this:
suppose the target (the other side of your serial cable) sends two strings
"aaaaaaaaaaaaaaa" and "11111111111111" one after the other.
Then it would be wrong to think you will receive first "aaaaaaaaaaaaaaa" and
then "11111111111111"; it might well turn out to be
"aaaaaaaaaaaaaaa11111111111111"
or "aaaaaaaa" and "aaaaaaa11111111111111"
or "aaaaaaaa" and "aaaaaaa11" and "111111111111"

That is, it is not because you are thinking about messages, that it will get
received as complete messages, the serial port does not care about anything
larger than a byte.

Smile | :)







GeneralRe: How to change the text of a text box in form after the form is displayed to user? Pin
AmarjeetSinghMatharu29-Jul-07 3:12
AmarjeetSinghMatharu29-Jul-07 3:12 
GeneralRe: How to change the text of a text box in form after the form is displayed to user? Pin
Luc Pattyn29-Jul-07 2:09
sitebuilderLuc Pattyn29-Jul-07 2:09 
QuestionConverting double slashes Pin
Mark0627-Jul-07 2:43
Mark0627-Jul-07 2:43 
AnswerRe: Converting double slashes Pin
PaulPrice27-Jul-07 2:50
PaulPrice27-Jul-07 2:50 
AnswerRe: Converting double slashes [modified] Pin
Martin#27-Jul-07 2:50
Martin#27-Jul-07 2:50 
AnswerRe: Converting double slashes Pin
steve_dunne27-Jul-07 2:52
steve_dunne27-Jul-07 2:52 
AnswerRe: Converting double slashes Pin
Guffa27-Jul-07 2:59
Guffa27-Jul-07 2:59 
AnswerRe: Converting double slashes Pin
Guffa27-Jul-07 3:01
Guffa27-Jul-07 3:01 
GeneralRe: Converting double slashes Pin
Martin#27-Jul-07 3:05
Martin#27-Jul-07 3:05 
GeneralRe: Converting double slashes Pin
leppie27-Jul-07 3:05
leppie27-Jul-07 3:05 
AnswerRe: Converting double slashes Pin
Guffa27-Jul-07 2:54
Guffa27-Jul-07 2:54 
GeneralRe: Converting double slashes Pin
Mike Dimmick27-Jul-07 3:01
Mike Dimmick27-Jul-07 3:01 
AnswerRe: Converting double slashes Pin
Mike Dimmick27-Jul-07 2:59
Mike Dimmick27-Jul-07 2:59 
AnswerRe: Converting double slashes Pin
Mark0627-Jul-07 2:59
Mark0627-Jul-07 2:59 
AnswerRe: Converting double slashes Pin
Nouman Bhatti27-Jul-07 4:21
Nouman Bhatti27-Jul-07 4:21 
GeneralRe: Converting double slashes Pin
Mike Dimmick27-Jul-07 3:02
Mike Dimmick27-Jul-07 3:02 
GeneralRe: Converting double slashes Pin
Mark0627-Jul-07 3:06
Mark0627-Jul-07 3:06 

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.