Click here to Skip to main content
15,911,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help - "Specified cast is not valid" Pin
jjansen14-Jun-05 23:43
jjansen14-Jun-05 23:43 
GeneralRe: Help - "Specified cast is not valid" Pin
Christian Graus14-Jun-05 23:41
protectorChristian Graus14-Jun-05 23:41 
GeneralRe: Help - "Specified cast is not valid" Pin
Vasudevan Deepak Kumar15-Jun-05 2:07
Vasudevan Deepak Kumar15-Jun-05 2:07 
GeneralRe: Help - "Specified cast is not valid" Pin
jjansen15-Jun-05 2:26
jjansen15-Jun-05 2:26 
GeneralRe: Help - "Specified cast is not valid" Pin
Anonymous15-Jun-05 13:02
Anonymous15-Jun-05 13:02 
GeneralMore help!! Pin
Anthony Mushrow16-Jun-05 1:03
professionalAnthony Mushrow16-Jun-05 1:03 
GeneralCreating a vectorized metafile (wmf) Pin
jjansen14-Jun-05 22:55
jjansen14-Jun-05 22:55 
QuestionHow can display a log of what's happening? Pin
Gavin_RTE14-Jun-05 22:27
Gavin_RTE14-Jun-05 22:27 
Right, where do I begin? Well, I wouldn't call myself a windows programmer, that's for sure. I work writing embedded C, and needed to write some windows code to help test and productionise some products. So I chose C# and I'm using SharpDevelop as an IDE.

The application I'm writing sends and recieves commands over a serial link to my microcontroller. That's working fine, but I want to keep a log of what's been sent and recieved. Ideally both on the screen and in a file. I think I'll be able to manage the file stuff (since I've already worked out how to open and read a hex file), but I'm totally stumped on how to show the log. I want to be able to write/append text to a control such as:

<br />
log.Text += "Port Opened\n";<br />
log.Text += "Ping Sent\n";<br />
log.Text += "Port Closed\n";<br />


Giving me a straightforward box with the following in it.

<br />
Port Opened<br />
Ping Sent<br />
Port Closed<br />


It needs to be vertically scrollable to allow a user to look back at what's happened. I hope somebody can tell me how to so this (I hope) straightforward thing, which has got me stumped.
AnswerRe: How can display a log of what's happening? Pin
nemopeti14-Jun-05 22:49
nemopeti14-Jun-05 22:49 
GeneralRe: How can display a log of what's happening? Pin
Gavin_RTE14-Jun-05 23:25
Gavin_RTE14-Jun-05 23:25 
GeneralHelp needed!!! FileSystemWatcher Pin
g3e14-Jun-05 21:57
g3e14-Jun-05 21:57 
GeneralRe: Help needed!!! FileSystemWatcher Pin
mav.northwind15-Jun-05 1:27
mav.northwind15-Jun-05 1:27 
GeneralRe: Help needed!!! FileSystemWatcher Pin
g3e15-Jun-05 22:59
g3e15-Jun-05 22:59 
GeneralRe: URGENT!!PLEASE..Conditional filling of a cell Pin
nemopeti15-Jun-05 0:28
nemopeti15-Jun-05 0:28 
QuestionHow to write winforms that not only work in IE but also Firefox Pin
stripe214-Jun-05 21:04
stripe214-Jun-05 21:04 
QuestionSelecting a TreeView node programmatically? Pin
kbalias14-Jun-05 19:51
kbalias14-Jun-05 19:51 
AnswerRe: Selecting a TreeView node programmatically? Pin
occcy14-Jun-05 20:05
occcy14-Jun-05 20:05 
AnswerRe: Selecting a TreeView node programmatically? Pin
S. Senthil Kumar14-Jun-05 20:09
S. Senthil Kumar14-Jun-05 20:09 
GeneralTextBox Selection Pin
chettu14-Jun-05 18:37
chettu14-Jun-05 18:37 
GeneralRe: TextBox Selection Pin
Vasudevan Deepak Kumar14-Jun-05 19:16
Vasudevan Deepak Kumar14-Jun-05 19:16 
GeneralRe: TextBox Selection Pin
chettu14-Jun-05 19:20
chettu14-Jun-05 19:20 
GeneralRe: TextBox Selection Pin
codeprojectin14-Jun-05 20:28
codeprojectin14-Jun-05 20:28 
Generalanother problem about Explorer.exe... Pin
Veelone14-Jun-05 17:37
Veelone14-Jun-05 17:37 
GeneralRe: another problem about Explorer.exe... Pin
Nick Parker14-Jun-05 18:04
protectorNick Parker14-Jun-05 18:04 
GeneralRe: another problem about Explorer.exe... Pin
Veelone14-Jun-05 19:10
Veelone14-Jun-05 19:10 

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.