Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
QuestionFreeze form Pin
ankkit19-Jun-08 4:35
ankkit19-Jun-08 4:35 
AnswerRe: Freeze form Pin
leppie19-Jun-08 4:37
leppie19-Jun-08 4:37 
GeneralRe: Freeze form Pin
User 665819-Jun-08 4:44
User 665819-Jun-08 4:44 
JokeRe: Freeze form Pin
carbon_golem19-Jun-08 4:47
carbon_golem19-Jun-08 4:47 
JokeRe: Freeze form Pin
Spacix One19-Jun-08 7:31
Spacix One19-Jun-08 7:31 
JokeRe: Freeze form Pin
carbon_golem19-Jun-08 7:49
carbon_golem19-Jun-08 7:49 
JokeEven Better! [modified] Pin
Spacix One19-Jun-08 9:30
Spacix One19-Jun-08 9:30 
JokeRe: Even Better! Pin
carbon_golem19-Jun-08 10:20
carbon_golem19-Jun-08 10:20 
Fantastic point, but what if you want 6 years and 12 milliseconds? I don't think that code can do that without wasting time typing in all those zeros into the function signature. Aren't we supposed to minimize typing?
public static void DelaySixYearsZeroMonthsZeroDaysZeroHoursZeroMinutesZeroSecondsAndSixMilliseconds(){
     DateTime end = DateTime.Now;
     end.AddMilliseconds(12);
     end.AddYears(6);
     while (DateTime.Now < end) ;
}

There. That can be reused indefinitely to wait 6 years and 12 milliseconds.

“It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration.”
-Edsger Dijkstra

JokeRe: Even Better! Pin
Spacix One19-Jun-08 10:32
Spacix One19-Jun-08 10:32 
GeneralRe: Even Better! Pin
mav.northwind20-Jun-08 1:49
mav.northwind20-Jun-08 1:49 
AnswerRe: Freeze form Pin
Bert delaVega19-Jun-08 6:12
Bert delaVega19-Jun-08 6:12 
GeneralRe: Freeze form Pin
darkelv19-Jun-08 7:57
darkelv19-Jun-08 7:57 
QuestionProblem populating multiple Combobox from Access Database..................pls help...........!!! Pin
Verghese19-Jun-08 4:09
Verghese19-Jun-08 4:09 
AnswerRe: Problem populating multiple Combobox from Access Database..................pls help...........!!! Pin
User 665819-Jun-08 4:25
User 665819-Jun-08 4:25 
GeneralRe: Problem populating multiple Combobox from Access Database..................pls help...........!!! Pin
Verghese19-Jun-08 6:06
Verghese19-Jun-08 6:06 
GeneralRe: Problem populating multiple Combobox from Access Database..................pls help...........!!! Pin
darkelv19-Jun-08 8:06
darkelv19-Jun-08 8:06 
GeneralRe: Problem populating multiple Combobox from Access Database..................pls help...........!!! Pin
Verghese19-Jun-08 9:28
Verghese19-Jun-08 9:28 
QuestionString.empty v.s. string.null Pin
George_George19-Jun-08 3:40
George_George19-Jun-08 3:40 
AnswerRe: String.empty v.s. string.null Pin
Pete O'Hanlon19-Jun-08 3:42
mvePete O'Hanlon19-Jun-08 3:42 
GeneralRe: String.empty v.s. string.null Pin
George_George19-Jun-08 3:58
George_George19-Jun-08 3:58 
GeneralRe: String.empty v.s. string.null Pin
Colin Angus Mackay19-Jun-08 4:02
Colin Angus Mackay19-Jun-08 4:02 
GeneralRe: String.empty v.s. string.null Pin
George_George19-Jun-08 22:36
George_George19-Jun-08 22:36 
GeneralRe: String.empty v.s. string.null Pin
leppie19-Jun-08 4:35
leppie19-Jun-08 4:35 
GeneralRe: String.empty v.s. string.null Pin
George_George19-Jun-08 22:39
George_George19-Jun-08 22:39 
GeneralRe: String.empty v.s. string.null Pin
Rutvik Dave19-Jun-08 4:35
professionalRutvik Dave19-Jun-08 4:35 

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.