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

C#

 
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 
AnswerRe: How can display a log of what's happening? Pin
nemopeti14-Jun-05 22:49
nemopeti14-Jun-05 22:49 
Dont't worry, it's not a big think.
- Create a TextBox with Multilne=true and Scrollbar eg.: called it log
- tahan when you want something to write to the textbox just write:
log.Text+="something";
- if you want to write a newline
log.Text+="\r\n";

If ou want to write the log to file (eg.: from the textbox):

<br />
System.IO.StreamWriter sw=new System.IO.StreamWriter("c:\\logfile.txt");<br />
foreach(string line in log.Text.Split("\r\n".ToCharArray()))<br />
{<br />
  if(line.Trim().Length>0)<br />
  {<br />
    sw.WriteLine(line);<br />
  }<br />
}<br />
sw.Close();<br />

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 
GeneralRe: another problem about Explorer.exe... Pin
nemopeti14-Jun-05 23:10
nemopeti14-Jun-05 23: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.