Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
QuestionMessageBox with textbox WPF Pin
juliogyn10-Sep-13 3:57
juliogyn10-Sep-13 3:57 
AnswerRe: MessageBox with textbox WPF Pin
Richard MacCutchan10-Sep-13 5:17
mveRichard MacCutchan10-Sep-13 5:17 
QuestionTake the first day of the month and the last day of the month ? Pin
Member 24584679-Sep-13 22:59
Member 24584679-Sep-13 22:59 
AnswerRe: Take the first day of the month and the last day of the month ? Pin
Richard MacCutchan9-Sep-13 23:43
mveRichard MacCutchan9-Sep-13 23:43 
GeneralRe: Take the first day of the month and the last day of the month ? Pin
Pete O'Hanlon10-Sep-13 0:44
mvePete O'Hanlon10-Sep-13 0:44 
AnswerRe: Take the first day of the month and the last day of the month ? Pin
Pete O'Hanlon10-Sep-13 0:38
mvePete O'Hanlon10-Sep-13 0:38 
AnswerRe: Take the first day of the month and the last day of the month ? Pin
Pete O'Hanlon10-Sep-13 2:22
mvePete O'Hanlon10-Sep-13 2:22 
AnswerRe: Take the first day of the month and the last day of the month ? Pin
ExcellentOrg10-Sep-13 5:27
ExcellentOrg10-Sep-13 5:27 
Nothing is wrong with this code, fellas. This approach is format, Culture independent.

I've used this kind of logic many many times and its very compact.

As is obvious to all, 1st of a month is never a problem because all months have 1st.

Instead of writing yet another variant in C++/C# for "30 days hath sep...", simply add 1 to month to the variable you had for 1st of month, and then subtract 1 day from the Resulting date.

It is meant to done in date arithmetic with valid values in Date's class.
GeneralRe: Take the first day of the month and the last day of the month ? Pin
jschell10-Sep-13 8:52
jschell10-Sep-13 8:52 
QuestionUnable to change default color of Progress Bar control in winforms Pin
superselector8-Sep-13 21:02
superselector8-Sep-13 21:02 
AnswerRe: Unable to change default color of Progress Bar control in winforms Pin
Abhinav S8-Sep-13 22:28
Abhinav S8-Sep-13 22:28 
AnswerRe: Unable to change default color of Progress Bar control in winforms Pin
Eddy Vluggen8-Sep-13 22:33
professionalEddy Vluggen8-Sep-13 22:33 
QuestionC# code making prolem when calling secure conection. Pin
Shinu K8-Sep-13 20:15
Shinu K8-Sep-13 20:15 
AnswerRe: C# code making prolem when calling secure conection. Pin
Abhinav S8-Sep-13 22:25
Abhinav S8-Sep-13 22:25 
QuestionC# vs Delphi. any ideas? Pin
Swinkaran8-Sep-13 20:13
professionalSwinkaran8-Sep-13 20:13 
AnswerRe: C# vs Delphi. any ideas? Pin
Abhinav S8-Sep-13 22:22
Abhinav S8-Sep-13 22:22 
AnswerRe: C# vs Delphi. any ideas? Pin
Eddy Vluggen8-Sep-13 22:33
professionalEddy Vluggen8-Sep-13 22:33 
QuestionCurrent Row Select in DataGridView ... Pin
smh13928-Sep-13 6:46
smh13928-Sep-13 6:46 
AnswerRe: Current Row Select in DataGridView ... Pin
Richard Andrew x648-Sep-13 14:20
professionalRichard Andrew x648-Sep-13 14:20 
AnswerRe: Current Row Select in DataGridView ... Pin
Eddy Vluggen9-Sep-13 8:06
professionalEddy Vluggen9-Sep-13 8:06 
Questionwordlist generator Pin
mory_2607-Sep-13 21:50
mory_2607-Sep-13 21:50 
SuggestionRe: wordlist generator Pin
Richard MacCutchan8-Sep-13 0:39
mveRichard MacCutchan8-Sep-13 0:39 
AnswerRe: wordlist generator Pin
Eddy Vluggen9-Sep-13 8:13
professionalEddy Vluggen9-Sep-13 8:13 
QuestionAvoid space at the Start of the textbox Pin
smh13927-Sep-13 10:21
smh13927-Sep-13 10:21 
AnswerRe: Avoid space at the Start of the textbox Pin
Dave Kreskowiak7-Sep-13 12:55
mveDave Kreskowiak7-Sep-13 12:55 

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.