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

C#

 
GeneralRe: Project Help Pin
Richard MacCutchan25-Aug-10 22:47
mveRichard MacCutchan25-Aug-10 22:47 
AnswerRe: Project Help Pin
Abhinav S25-Aug-10 5:57
Abhinav S25-Aug-10 5:57 
AnswerRe: Project Help Pin
Pete O'Hanlon25-Aug-10 13:07
mvePete O'Hanlon25-Aug-10 13:07 
AnswerRe: Project Help Pin
Luc Pattyn25-Aug-10 13:39
sitebuilderLuc Pattyn25-Aug-10 13:39 
GeneralRe: Project Help Pin
PIEBALDconsult25-Aug-10 15:17
mvePIEBALDconsult25-Aug-10 15:17 
GeneralRe: Project Help Pin
Luc Pattyn25-Aug-10 15:30
sitebuilderLuc Pattyn25-Aug-10 15:30 
QuestionRun Time Error in simple C# windows app [Solved] Pin
Abhishrek24-Aug-10 23:19
Abhishrek24-Aug-10 23:19 
AnswerRe: Run Time Error in simple C# windows app Pin
OriginalGriff24-Aug-10 23:46
mveOriginalGriff24-Aug-10 23:46 
When it says "Null reference error" it means that you are trying to refer to an object that has not been set. In this case (and assuming there is no code you missed) it would be the Parent property. Since you have used (Parent as ProjectDoc) I can only assume that the parent is not a ProjectDoc derived object.

Firstly, whenever you use as make a habit of checking the result:
MyClass mc = obj as MyClass;
if (mc != null)
   {
   ...
   }
It will save you a lot of grief later on!

Secondly, put a breakpoint on the offending line, and see what the Parent property actual is. This should tell you what you need to do.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

GeneralRe: Run Time Error in simple C# windows app Pin
Abhishrek25-Aug-10 17:34
Abhishrek25-Aug-10 17:34 
AnswerRe: Run Time Error in simple C# windows app Pin
Bernhard Hiller25-Aug-10 0:03
Bernhard Hiller25-Aug-10 0:03 
GeneralRe: Run Time Error in simple C# windows app Pin
Sauro Viti25-Aug-10 2:21
professionalSauro Viti25-Aug-10 2:21 
GeneralRe: Run Time Error in simple C# windows app Pin
Luc Pattyn25-Aug-10 2:31
sitebuilderLuc Pattyn25-Aug-10 2:31 
GeneralRe: Run Time Error in simple C# windows app Pin
OriginalGriff25-Aug-10 2:59
mveOriginalGriff25-Aug-10 2:59 
GeneralRe: Run Time Error in simple C# windows app Pin
Luc Pattyn25-Aug-10 3:16
sitebuilderLuc Pattyn25-Aug-10 3:16 
GeneralRe: Run Time Error in simple C# windows app Pin
OriginalGriff25-Aug-10 3:23
mveOriginalGriff25-Aug-10 3:23 
GeneralRe: Run Time Error in simple C# windows app Pin
DaveyM6925-Aug-10 3:38
professionalDaveyM6925-Aug-10 3:38 
GeneralRe: Run Time Error in simple C# windows app Pin
PIEBALDconsult25-Aug-10 15:26
mvePIEBALDconsult25-Aug-10 15:26 
GeneralRe: Run Time Error in simple C# windows app Pin
Luc Pattyn25-Aug-10 15:32
sitebuilderLuc Pattyn25-Aug-10 15:32 
GeneralRe: Run Time Error in simple C# windows app Pin
PIEBALDconsult25-Aug-10 18:44
mvePIEBALDconsult25-Aug-10 18:44 
GeneralRe: Run Time Error in simple C# windows app Pin
Abhishrek25-Aug-10 17:20
Abhishrek25-Aug-10 17:20 
GeneralRe: Run Time Error in simple C# windows app Pin
Abhishrek25-Aug-10 17:22
Abhishrek25-Aug-10 17:22 
QuestionWhat is the best way to do Clone to class that derived from Queue ( code attached ) Pin
Yanshof24-Aug-10 23:07
Yanshof24-Aug-10 23:07 
AnswerRe: What is the best way to do Clone to class that derived from Queue ( code attached ) Pin
Eddy Vluggen25-Aug-10 7:43
professionalEddy Vluggen25-Aug-10 7:43 
QuestionMessage Removed Pin
24-Aug-10 22:10
Subrat Patnaik24-Aug-10 22:10 
AnswerPlease delete your other posts on this. Pin
Pete O'Hanlon24-Aug-10 22:18
mvePete O'Hanlon24-Aug-10 22:18 

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.