Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: Set column width of datagrid [modified] Pin
harry~20-Mar-08 22:37
harry~20-Mar-08 22:37 
GeneralRe: Set column width of datagrid Pin
Xmen Real 20-Mar-08 22:40
professional Xmen Real 20-Mar-08 22:40 
GeneralRe: Set column width of datagrid Pin
harry~20-Mar-08 22:54
harry~20-Mar-08 22:54 
GeneralRe: Set column width of datagrid Pin
Xmen Real 20-Mar-08 22:56
professional Xmen Real 20-Mar-08 22:56 
GeneralDownload File from Server Folder Pin
sjs4u20-Mar-08 20:57
sjs4u20-Mar-08 20:57 
GeneralRe: Download File from Server Folder Pin
Paul Conrad21-Mar-08 9:16
professionalPaul Conrad21-Mar-08 9:16 
QuestionError handling code.. Pin
ptr2void20-Mar-08 20:33
ptr2void20-Mar-08 20:33 
GeneralRe: Error handling code.. Pin
Christian Graus20-Mar-08 20:46
protectorChristian Graus20-Mar-08 20:46 
DateTime dt;

int n = dt.Days;

This will throw that error. It means that dt ( in this case ) is null.

Google will tell you all you need to know about arrays. At a guess, you've created an array of objects and are getting this error. Every object in that array is null and you need to call new on it before you can use it.

Christian Graus - Microsoft MVP - C++

"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

GeneralRe: Error handling code.. Pin
ptr2void20-Mar-08 20:50
ptr2void20-Mar-08 20:50 
GeneralRe: Error handling code.. Pin
Luc Pattyn21-Mar-08 1:19
sitebuilderLuc Pattyn21-Mar-08 1:19 
GeneralRe: Error handling code.. Pin
MarkB77720-Mar-08 20:53
MarkB77720-Mar-08 20:53 
Generalinserting and retrieving data from a datarow in C# Pin
salon20-Mar-08 19:36
salon20-Mar-08 19:36 
Questionhow to get index value in imagebutton gridview using .net with c# Pin
sugunavathysubramanian20-Mar-08 19:10
sugunavathysubramanian20-Mar-08 19:10 
GeneralDelegate problem Pin
MarkB77720-Mar-08 17:22
MarkB77720-Mar-08 17:22 
GeneralRe: Delegate problem Pin
Christian Graus20-Mar-08 18:54
protectorChristian Graus20-Mar-08 18:54 
GeneralRe: Delegate problem Pin
MarkB77720-Mar-08 19:41
MarkB77720-Mar-08 19:41 
GeneralRe: Delegate problem Pin
Christian Graus20-Mar-08 20:48
protectorChristian Graus20-Mar-08 20:48 
GeneralGeneric Collections and Interfaces (Returning a collection of interfaces) Pin
dfa_geko20-Mar-08 17:05
dfa_geko20-Mar-08 17:05 
GeneralRe: Generic Collections and Interfaces (Returning a collection of interfaces) Pin
Steve Echols20-Mar-08 19:04
Steve Echols20-Mar-08 19:04 
Generalthread priority Pin
George_George20-Mar-08 16:29
George_George20-Mar-08 16:29 
GeneralRe: thread priority Pin
Paul Conrad21-Mar-08 8:11
professionalPaul Conrad21-Mar-08 8:11 
GeneralRe: thread priority Pin
George_George21-Mar-08 21:16
George_George21-Mar-08 21:16 
GeneralRe: thread priority Pin
Paul Conrad22-Mar-08 5:23
professionalPaul Conrad22-Mar-08 5:23 
GeneralRe: thread priority Pin
George_George23-Mar-08 3:06
George_George23-Mar-08 3:06 
GeneralRe: thread priority Pin
Paul Conrad23-Mar-08 5:29
professionalPaul Conrad23-Mar-08 5:29 

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.