Click here to Skip to main content
15,901,122 members
Home / Discussions / C#
   

C#

 
GeneralRe: Which Row/Col When Mouse Hovers/Moves over DataGrid? Pin
Khang Nguyen14-Sep-04 4:09
Khang Nguyen14-Sep-04 4:09 
GeneralAccessing form controls Pin
13-Sep-04 11:10
suss13-Sep-04 11:10 
GeneralRe: Accessing form controls Pin
Christian Graus13-Sep-04 11:24
protectorChristian Graus13-Sep-04 11:24 
GeneralRe: Accessing form controls Pin
Heath Stewart13-Sep-04 11:48
protectorHeath Stewart13-Sep-04 11:48 
GeneralRe: Accessing form controls Pin
Member 132528214-Sep-04 13:49
Member 132528214-Sep-04 13:49 
GeneralRe: Accessing form controls Pin
Heath Stewart15-Sep-04 5:58
protectorHeath Stewart15-Sep-04 5:58 
GeneralRe: DateTime Pin
Nick Parker13-Sep-04 9:47
protectorNick Parker13-Sep-04 9:47 
GeneralRe: DateTime Pin
Heath Stewart13-Sep-04 11:33
protectorHeath Stewart13-Sep-04 11:33 
You can compare more than just days. One simple (and there are many) comparison would be:
DateTime now = DateTime.Now;
if (now > now.AddMonths(-6))
  // Included date is later than 6 months ago.
The TimeSpan lets you build a span that includes more than days as well. Since both DateTime and TimeSpan are structs (value types), keep in mind that methods like AddMonths do not change the referenced struct.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
Generalneed help in the Process class Pin
bora3ee13-Sep-04 9:38
bora3ee13-Sep-04 9:38 
GeneralRe: need help in the Process class Pin
Nick Parker13-Sep-04 10:32
protectorNick Parker13-Sep-04 10:32 
GeneralRe: need help in the Process class Pin
Heath Stewart13-Sep-04 11:40
protectorHeath Stewart13-Sep-04 11:40 
GeneralWinForms - popup config windows in a specified area Pin
TheBlindWatchmaker13-Sep-04 9:23
TheBlindWatchmaker13-Sep-04 9:23 
GeneralRelease memory - newbie doubt Pin
ee9903513-Sep-04 6:55
ee9903513-Sep-04 6:55 
GeneralRe: Release memory - newbie doubt Pin
Nick Parker13-Sep-04 7:30
protectorNick Parker13-Sep-04 7:30 
GeneralRe: Release memory - newbie doubt Pin
ee9903513-Sep-04 7:53
ee9903513-Sep-04 7:53 
GeneralRe: Release memory - newbie doubt Pin
Nick Parker13-Sep-04 8:40
protectorNick Parker13-Sep-04 8:40 
GeneralRe: Release memory - newbie doubt Pin
Heath Stewart13-Sep-04 11:07
protectorHeath Stewart13-Sep-04 11:07 
QuestionHow to wrap the string.Format method? Pin
matthias s.13-Sep-04 6:37
matthias s.13-Sep-04 6:37 
AnswerRe: How to wrap the string.Format method? Pin
Nick Parker13-Sep-04 7:33
protectorNick Parker13-Sep-04 7:33 
QuestionDirectx -- D3DX.Mesh.Box Samples ? Pin
jlabbe13-Sep-04 6:35
jlabbe13-Sep-04 6:35 
AnswerRe: Directx -- D3DX.Mesh.Box Samples ? Pin
Heath Stewart13-Sep-04 11:01
protectorHeath Stewart13-Sep-04 11:01 
Questionint -> byte[] Howto? Pin
Ariadne13-Sep-04 5:18
Ariadne13-Sep-04 5:18 
AnswerRe: int -> byte[] Howto? Pin
Colin Angus Mackay13-Sep-04 5:43
Colin Angus Mackay13-Sep-04 5:43 
GeneralRe: int -> byte[] Howto? Pin
Ariadne13-Sep-04 19:52
Ariadne13-Sep-04 19:52 
AnswerRe: int -> byte[] Howto? Pin
Heath Stewart13-Sep-04 5:54
protectorHeath Stewart13-Sep-04 5:54 

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.