Click here to Skip to main content
15,443,549 members
Home / Discussions / C#
   

C#

 
AnswerRe: returning when inside a lock - is it safe? Pin
Heath Stewart13-Jan-04 4:46
protectorHeath Stewart13-Jan-04 4:46 
GeneralRe: returning when inside a lock - is it safe? Pin
Brandon Haase13-Jan-04 16:13
MemberBrandon Haase13-Jan-04 16:13 
AnswerRe: returning when inside a lock - is it safe? Pin
scadaguy13-Jan-04 5:23
Memberscadaguy13-Jan-04 5:23 
GeneralRe: returning when inside a lock - is it safe? Pin
Brandon Haase13-Jan-04 16:28
MemberBrandon Haase13-Jan-04 16:28 
Generalremoting access Pin
haih12-Jan-04 15:23
Memberhaih12-Jan-04 15:23 
GeneralRe: remoting access Pin
Heath Stewart13-Jan-04 4:31
protectorHeath Stewart13-Jan-04 4:31 
GeneralHelp with MonthCalendar class Pin
KingTermite12-Jan-04 15:18
MemberKingTermite12-Jan-04 15:18 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart13-Jan-04 3:41
protectorHeath Stewart13-Jan-04 3:41 
You can use the SelectionRange (or the SelectionStart and SelectionEnd properties) to iterate between the start and end dates. You cold either temporarily add these to a growable ArrayList, or calculate the number of elements a DateTime[] array would require. The following uses the latter method:
TimeSpan span = monthCal.SelectionEnd - monthCal.SelectionStart;
int count = span.Days + 1; // Subtraction of days requires that you add 1.
DateTime[] dts = new DateTime[count];
for (int i=0; i<count; i++)
  dts[i] = monthCal.SelectionStart + new TimeSpan(1, 0, 0, 0);


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Help with MonthCalendar class Pin
KingTermite13-Jan-04 4:27
MemberKingTermite13-Jan-04 4:27 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart13-Jan-04 4:37
protectorHeath Stewart13-Jan-04 4:37 
GeneralRe: Help with MonthCalendar class Pin
KingTermite13-Jan-04 5:43
MemberKingTermite13-Jan-04 5:43 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart13-Jan-04 5:50
protectorHeath Stewart13-Jan-04 5:50 
GeneralRe: Help with MonthCalendar class Pin
KingTermite13-Jan-04 6:02
MemberKingTermite13-Jan-04 6:02 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart13-Jan-04 6:47
protectorHeath Stewart13-Jan-04 6:47 
GeneralRe: Help with MonthCalendar class Pin
KingTermite15-Jan-04 14:49
MemberKingTermite15-Jan-04 14:49 
GeneralRe: Help with MonthCalendar class Pin
Heath Stewart16-Jan-04 3:42
protectorHeath Stewart16-Jan-04 3:42 
GeneralFile Permissions Pin
krisp12-Jan-04 14:54
Memberkrisp12-Jan-04 14:54 
GeneralRe: File Permissions Pin
Jeff Mackie12-Jan-04 17:33
sussJeff Mackie12-Jan-04 17:33 
GeneralRe: File Permissions Pin
krisp12-Jan-04 17:36
Memberkrisp12-Jan-04 17:36 
GeneralRe: File Permissions Pin
Jeff Mackie12-Jan-04 17:48
sussJeff Mackie12-Jan-04 17:48 
GeneralRe: File Permissions Pin
Heath Stewart13-Jan-04 2:57
protectorHeath Stewart13-Jan-04 2:57 
QuestionHow can I use the Cabinet.dll in c# Pin
aw1ay12-Jan-04 14:32
Memberaw1ay12-Jan-04 14:32 
AnswerRe: How can I use the Cabinet.dll in c# Pin
Heath Stewart13-Jan-04 2:52
protectorHeath Stewart13-Jan-04 2:52 
GeneralRe: How can I use the Cabinet.dll in c# Pin
aw1ay13-Jan-04 15:52
Memberaw1ay13-Jan-04 15:52 
GeneralRe: How can I use the Cabinet.dll in c# Pin
Heath Stewart14-Jan-04 3:22
protectorHeath Stewart14-Jan-04 3:22 

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.