Click here to Skip to main content
15,444,523 members
Home / Discussions / C#
   

C#

 
AnswerRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Agewiz22-Jun-16 11:50
MemberAgewiz22-Jun-16 11:50 
AnswerRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Afzaal Ahmad Zeeshan22-Jun-16 7:12
mveAfzaal Ahmad Zeeshan22-Jun-16 7:12 
PraiseRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Eddy Vluggen22-Jun-16 8:04
professionalEddy Vluggen22-Jun-16 8:04 
GeneralRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Agewiz22-Jun-16 12:02
MemberAgewiz22-Jun-16 12:02 
AnswerRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Afzaal Ahmad Zeeshan22-Jun-16 12:04
mveAfzaal Ahmad Zeeshan22-Jun-16 12:04 
AnswerRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
BillWoodruff22-Jun-16 19:23
mveBillWoodruff22-Jun-16 19:23 
SuggestionRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Richard Deeming23-Jun-16 2:09
mveRichard Deeming23-Jun-16 2:09 
GeneralRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
BillWoodruff23-Jun-16 3:05
mveBillWoodruff23-Jun-16 3:05 
As always, thanks for the feedback, Richard.

If you care to say a few words about why it's not thread safe, I'd be grateful; I have virtually no experience dealing with multi-threaded apps, or multi-user apps.

Yes, the use of 'StringBuilder here is a bit over-kill, but the example you see here is extracted/altered from code I used where a lot more is logged, and there is a great deal more done with strings.
«There is a spectrum, from "clearly desirable behaviour," to "possibly dodgy behavior that still makes some sense," to "clearly undesirable behavior." We try to make the latter into warnings or, better, errors. But stuff that is in the middle category you don’t want to restrict unless there is a clear way to work around it.» Eric Lippert, May 14, 2008

GeneralRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
Richard Deeming23-Jun-16 7:14
mveRichard Deeming23-Jun-16 7:14 
GeneralRe: Whenever code shows "Console.WriteLine..." replace with textbox Pin
BillWoodruff26-Jun-16 4:48
mveBillWoodruff26-Jun-16 4:48 
QuestionDevExpress.XtraGrid.Views.Grid.GridView changing the data by Mouse Scrolling Pin
po_saa22-Jun-16 5:46
Memberpo_saa22-Jun-16 5:46 
AnswerREPOST Re: DevExpress.XtraGrid.Views.Grid.GridView changing the data by Mouse Scrolling Pin
Dave Kreskowiak22-Jun-16 6:01
mveDave Kreskowiak22-Jun-16 6:01 
QuestionMeaning of errors logged by FileSystemWatcher.Error Pin
srikrishnathanthri22-Jun-16 1:24
Membersrikrishnathanthri22-Jun-16 1:24 
AnswerRe: Meaning of errors logged by FileSystemWatcher.Error PinPopular
Eddy Vluggen22-Jun-16 1:50
professionalEddy Vluggen22-Jun-16 1:50 
GeneralRe: Meaning of errors logged by FileSystemWatcher.Error Pin
srikrishnathanthri22-Jun-16 19:47
Membersrikrishnathanthri22-Jun-16 19:47 
GeneralRe: Meaning of errors logged by FileSystemWatcher.Error Pin
Eddy Vluggen23-Jun-16 1:31
professionalEddy Vluggen23-Jun-16 1:31 
QuestionThe database type “GenericDatabase” does not support asynchronous operations Pin
srikrishnathanthri22-Jun-16 1:13
Membersrikrishnathanthri22-Jun-16 1:13 
AnswerRe: The database type “GenericDatabase” does not support asynchronous operations Pin
Eddy Vluggen22-Jun-16 1:48
professionalEddy Vluggen22-Jun-16 1:48 
AnswerRe: The database type “GenericDatabase” does not support asynchronous operations Pin
Dave Kreskowiak22-Jun-16 3:44
mveDave Kreskowiak22-Jun-16 3:44 
Questionneed help to send multiple sms using excel file in c# windows application Pin
trilok pandey21-Jun-16 1:39
Membertrilok pandey21-Jun-16 1:39 
AnswerRe: need help to send multiple sms using excel file in c# windows application Pin
Dave Kreskowiak21-Jun-16 3:10
mveDave Kreskowiak21-Jun-16 3:10 
GeneralRe: need help to send multiple sms using excel file in c# windows application Pin
EveryNameIsTakenEvenThisOne21-Jun-16 21:37
professionalEveryNameIsTakenEvenThisOne21-Jun-16 21:37 
GeneralRe: need help to send multiple sms using excel file in c# windows application Pin
OriginalGriff21-Jun-16 21:54
mveOriginalGriff21-Jun-16 21:54 
GeneralRe: need help to send multiple sms using excel file in c# windows application Pin
Dave Kreskowiak22-Jun-16 3:42
mveDave Kreskowiak22-Jun-16 3:42 
GeneralRe: need help to send multiple sms using excel file in c# windows application Pin
EveryNameIsTakenEvenThisOne24-Jun-16 12:10
professionalEveryNameIsTakenEvenThisOne24-Jun-16 12: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.