Click here to Skip to main content
15,923,852 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is it possible to remove existing graphics from an image? Pin
mav.northwind5-Dec-05 7:12
mav.northwind5-Dec-05 7:12 
AnswerRe: Is it possible to remove existing graphics from an image? Pin
Robert Rohde5-Dec-05 7:13
Robert Rohde5-Dec-05 7:13 
AnswerRe: Is it possible to remove existing graphics from an image? Pin
dnewmon5-Dec-05 7:22
dnewmon5-Dec-05 7:22 
GeneralRe: Is it possible to remove existing graphics from an image? Pin
Gulfraz Khan7-Dec-05 2:28
Gulfraz Khan7-Dec-05 2:28 
QuestionDateTime Range Pin
lior654#hotmail.com5-Dec-05 4:36
lior654#hotmail.com5-Dec-05 4:36 
AnswerRe: DateTime Range Pin
dnewmon5-Dec-05 6:58
dnewmon5-Dec-05 6:58 
GeneralRe: DateTime Range Pin
lior654#hotmail.com5-Dec-05 18:23
lior654#hotmail.com5-Dec-05 18:23 
GeneralRe: DateTime Range Pin
dnewmon6-Dec-05 7:21
dnewmon6-Dec-05 7:21 
Ok, well you could try something like:

DateTime dtStart = new DateTime(2005, 1, 1);
DateTime dtEnd = new DateTime(2005, 1, 30);
DateTime dtCurrent = dtStart;

while (dtCurrent < dtEnd)
{
	double dDays;
	if (dtCurrent.DayOfWeek != DayOfWeek.Sunday)
		dDays = 6.0 - (double)dtCurrent.DayOfWeek;
	else if ((dtCurrent.Day + 6) <= dtEnd.Day)
		dDays = 6.0;
	else
		dDays = dtEnd.Day - dtCurrent.Day;

	Console.Write(dtCurrent + " - ");
	DateTime dtEndOfWeek = dtCurrent.AddDays(dDays);
	Console.WriteLine(dtEndOfWeek);
	dtCurrent = dtEndOfWeek.AddDays(1.0);
}


David
Questiontypedef in c# Pin
Sasuko5-Dec-05 4:26
Sasuko5-Dec-05 4:26 
AnswerRe: typedef in c# Pin
ThaddParker5-Dec-05 4:32
ThaddParker5-Dec-05 4:32 
AnswerRe: typedef in c# Pin
J4amieC5-Dec-05 4:42
J4amieC5-Dec-05 4:42 
GeneralRe: typedef in c# Pin
Curtis Schlak.5-Dec-05 5:51
Curtis Schlak.5-Dec-05 5:51 
GeneralRe: typedef in c# Pin
mav.northwind5-Dec-05 7:04
mav.northwind5-Dec-05 7:04 
GeneralRe: typedef in c# Pin
dnewmon5-Dec-05 7:29
dnewmon5-Dec-05 7:29 
GeneralRe: typedef in c# Pin
Curtis Schlak.5-Dec-05 9:23
Curtis Schlak.5-Dec-05 9:23 
QuestionTrying to encrypt a string Pin
Rich Poulin5-Dec-05 3:58
Rich Poulin5-Dec-05 3:58 
AnswerRe: Trying to encrypt a string Pin
Colin Angus Mackay5-Dec-05 4:23
Colin Angus Mackay5-Dec-05 4:23 
QuestionInvoking an html button in a WebBrowser control Pin
Martin235-Dec-05 2:47
Martin235-Dec-05 2:47 
AnswerRe: Invoking an html button in a WebBrowser control Pin
Martin235-Dec-05 6:48
Martin235-Dec-05 6:48 
QuestionDisk Space Pin
sebastianos5-Dec-05 2:42
sebastianos5-Dec-05 2:42 
AnswerRe: Disk Space Pin
Judah Gabriel Himango5-Dec-05 7:40
sponsorJudah Gabriel Himango5-Dec-05 7:40 
QuestionComputers and Printers Pin
sebastianos5-Dec-05 2:41
sebastianos5-Dec-05 2:41 
QuestionProblem Regarding Adding dll into Assembly Pin
A.Grover5-Dec-05 1:09
A.Grover5-Dec-05 1:09 
AnswerRe: Problem Regarding Adding dll into Assembly Pin
rakesh_nits5-Dec-05 2:27
rakesh_nits5-Dec-05 2:27 
GeneralRe: Problem Regarding Adding dll into Assembly Pin
A.Grover5-Dec-05 18:19
A.Grover5-Dec-05 18:19 

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.