Click here to Skip to main content
15,916,702 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get Caller ID from Tapi3lib? Pin
Richard MacCutchan18-Nov-09 11:52
mveRichard MacCutchan18-Nov-09 11:52 
GeneralRe: How to get Caller ID from Tapi3lib? [modified] Pin
grefu18-Nov-09 21:18
grefu18-Nov-09 21:18 
GeneralRe: How to get Caller ID from Tapi3lib? Pin
Richard MacCutchan18-Nov-09 21:45
mveRichard MacCutchan18-Nov-09 21:45 
GeneralRe: How to get Caller ID from Tapi3lib? Pin
grefu19-Nov-09 2:34
grefu19-Nov-09 2:34 
GeneralRe: How to get Caller ID from Tapi3lib? Pin
Richard MacCutchan19-Nov-09 6:28
mveRichard MacCutchan19-Nov-09 6:28 
Questiongraphs for compactframework Pin
benjamin yap18-Nov-09 5:44
benjamin yap18-Nov-09 5:44 
AnswerRe: graphs for compactframework Pin
cdpace18-Nov-09 11:02
cdpace18-Nov-09 11:02 
QuestionMouse Enter/Leave event (global) Pin
sodevrom18-Nov-09 5:32
sodevrom18-Nov-09 5:32 
AnswerRe: Mouse Enter/Leave event (global) Pin
The Man from U.N.C.L.E.18-Nov-09 7:44
The Man from U.N.C.L.E.18-Nov-09 7:44 
QuestionCalculate How Many Mondays in a Particular Month Pin
cdpace18-Nov-09 5:09
cdpace18-Nov-09 5:09 
AnswerRe: Calculate How Many Mondays in a Particular Month Pin
Richard MacCutchan18-Nov-09 5:31
mveRichard MacCutchan18-Nov-09 5:31 
AnswerRe: Calculate How Many Mondays in a Particular Month Pin
SilimSayo18-Nov-09 5:41
SilimSayo18-Nov-09 5:41 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
SilimSayo18-Nov-09 5:42
SilimSayo18-Nov-09 5:42 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
musefan18-Nov-09 6:15
musefan18-Nov-09 6:15 
AnswerRe: Calculate How Many Mondays in a Particular Month Pin
PIEBALDconsult18-Nov-09 6:05
mvePIEBALDconsult18-Nov-09 6:05 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
Nagy Vilmos18-Nov-09 6:11
professionalNagy Vilmos18-Nov-09 6:11 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
PIEBALDconsult18-Nov-09 6:54
mvePIEBALDconsult18-Nov-09 6:54 
AnswerRe: Calculate How Many Mondays in a Particular Month Pin
Abhishek Sur18-Nov-09 6:23
professionalAbhishek Sur18-Nov-09 6:23 
AnswerRe: Calculate How Many Mondays in a Particular Month Pin
musefan18-Nov-09 6:24
musefan18-Nov-09 6:24 
Here's a method you could use...

int CountDaysInMonth(int month, int year, DayOfWeek dayToCount)
{
  DateTime dt = new DateTime(year, month, 1);
  int result = 0;
  for(int i = 0; i < DateTime.DaysInMonth(year, month); i++)
  {
    if(dt.DayOfWeek == dayToCount)
      result++;
    dt.AddDays(1);
  }
  return result;
}


Life goes very fast. Tomorrow, today is already yesterday.

AnswerRe: Calculate How Many Mondays in a Particular Month Pin
musefan18-Nov-09 6:40
musefan18-Nov-09 6:40 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
harold aptroot18-Nov-09 6:45
harold aptroot18-Nov-09 6:45 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
musefan18-Nov-09 6:56
musefan18-Nov-09 6:56 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
Luc Pattyn18-Nov-09 7:09
sitebuilderLuc Pattyn18-Nov-09 7:09 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
harold aptroot18-Nov-09 7:12
harold aptroot18-Nov-09 7:12 
GeneralRe: Calculate How Many Mondays in a Particular Month Pin
PIEBALDconsult18-Nov-09 8:43
mvePIEBALDconsult18-Nov-09 8:43 

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.