Click here to Skip to main content
15,886,518 members
Home / Discussions / C#
   

C#

 
AnswerRe: vsto problem Pin
Nagy Vilmos12-Jun-09 5:34
professionalNagy Vilmos12-Jun-09 5:34 
GeneralRe: vsto problem Pin
EliottA12-Jun-09 5:40
EliottA12-Jun-09 5:40 
GeneralRe: vsto problem Pin
Nagy Vilmos12-Jun-09 5:43
professionalNagy Vilmos12-Jun-09 5:43 
AnswerRe: vsto problem PinPopular
Randor 12-Jun-09 9:08
professional Randor 12-Jun-09 9:08 
GeneralTimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:04
hairy_hats12-Jun-09 4:04 
GeneralRe: TimeSpan equivalent for the working week Pin
Luc Pattyn12-Jun-09 4:11
sitebuilderLuc Pattyn12-Jun-09 4:11 
GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:23
hairy_hats12-Jun-09 4:23 
GeneralRe: TimeSpan equivalent for the working week Pin
Luc Pattyn12-Jun-09 4:27
sitebuilderLuc Pattyn12-Jun-09 4:27 
I suggest you make an extension method DateTime.AddWorkingHours(int hours) which throws a BadArgumentException on negative values, and iteratively calls AddHours(x) and AddDays(1) until all the hours have been exhauted. That should take no more than 20 lines of code.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

GeneralRe: TimeSpan equivalent for the working week Pin
hairy_hats12-Jun-09 4:49
hairy_hats12-Jun-09 4:49 
QuestionMCE Remote Controller Pin
ryan11712-Jun-09 2:46
ryan11712-Jun-09 2:46 
QuestionWMI Pin
arkiboys12-Jun-09 2:36
arkiboys12-Jun-09 2:36 
AnswerRe: WMI Pin
Dave Kreskowiak12-Jun-09 5:18
mveDave Kreskowiak12-Jun-09 5:18 
GeneralRe: WMI Pin
arkiboys12-Jun-09 8:08
arkiboys12-Jun-09 8:08 
GeneralRe: WMI Pin
Dave Kreskowiak12-Jun-09 11:15
mveDave Kreskowiak12-Jun-09 11:15 
GeneralRe: WMI [modified] Pin
arkiboys14-Jun-09 20:31
arkiboys14-Jun-09 20:31 
Questioncannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo12-Jun-09 2:01
Adekolurejo12-Jun-09 2:01 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Nagy Vilmos12-Jun-09 2:26
professionalNagy Vilmos12-Jun-09 2:26 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 2:37
Rob Philpott12-Jun-09 2:37 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
PIEBALDconsult12-Jun-09 3:49
mvePIEBALDconsult12-Jun-09 3:49 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 4:12
Rob Philpott12-Jun-09 4:12 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
PIEBALDconsult12-Jun-09 9:21
mvePIEBALDconsult12-Jun-09 9:21 
GeneralRe: cannot insert into database 2005 using visual c# 2008 Pin
Rob Philpott12-Jun-09 23:17
Rob Philpott12-Jun-09 23:17 
QuestionFileWather Path Error [modified][Solved] Pin
MumbleB12-Jun-09 1:58
MumbleB12-Jun-09 1:58 
AnswerRe: FileWather Path Error Pin
_AnsHUMAN_ 12-Jun-09 2:02
_AnsHUMAN_ 12-Jun-09 2:02 
GeneralRe: FileWather Path Error Pin
MumbleB12-Jun-09 2:09
MumbleB12-Jun-09 2:09 

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.