Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need help in messenger Pin
Guffa6-Jun-06 11:15
Guffa6-Jun-06 11:15 
QuestionCheck the internet connection status Pin
ventomito6-Jun-06 7:31
ventomito6-Jun-06 7:31 
AnswerRe: Check the internet connection status Pin
Paul Brower6-Jun-06 10:38
Paul Brower6-Jun-06 10:38 
GeneralRe: Check the internet connection status Pin
ventomito7-Jun-06 2:21
ventomito7-Jun-06 2:21 
QuestionCasting from derived class to base class Pin
Melon006-Jun-06 7:02
Melon006-Jun-06 7:02 
AnswerRe: Casting from derived class to base class Pin
Wjousts6-Jun-06 7:13
Wjousts6-Jun-06 7:13 
AnswerRe: Casting from derived class to base class Pin
Josh Smith6-Jun-06 9:28
Josh Smith6-Jun-06 9:28 
AnswerRe: Casting from derived class to base class Pin
Guffa6-Jun-06 11:24
Guffa6-Jun-06 11:24 
The object that you are trying to cast simply isn't a SimTreeNode. One reason could be that the GetNodeAt method didn't find any node at the point, and is returning a null value.

You have to check if the node is null before you try to cast it.

If the TreeView can contain other nodes than SimTreeNodes you should use the as keyword to cast the node. If it's not a SimTreeNode it will return null.


---
b { font-weight: normal; }

AnswerRe: Casting from derived class to base class Pin
Ret Orrick6-Jun-06 15:49
Ret Orrick6-Jun-06 15:49 
QuestionPlease Help ! Pin
mostafa_h6-Jun-06 4:25
mostafa_h6-Jun-06 4:25 
AnswerRe: Please Help ! Pin
CodyGen6-Jun-06 5:45
CodyGen6-Jun-06 5:45 
GeneralRe: Please Help ! Pin
mostafa_h6-Jun-06 11:25
mostafa_h6-Jun-06 11:25 
Questionquestion about time and date format ? [modified] Pin
cmpeng346-Jun-06 4:20
cmpeng346-Jun-06 4:20 
AnswerRe: question about time and date format ? Pin
Dustin Metzgar6-Jun-06 4:39
Dustin Metzgar6-Jun-06 4:39 
AnswerRe: question about time and date format ? [modified] Pin
Wjousts6-Jun-06 4:40
Wjousts6-Jun-06 4:40 
QuestionDirect instantiation of Bitmap from unsafe memory Pin
Florian Storck6-Jun-06 4:10
Florian Storck6-Jun-06 4:10 
QuestionGet file that spawned the application. Pin
cmarcus6-Jun-06 4:01
cmarcus6-Jun-06 4:01 
AnswerRe: Get file that spawned the application. Pin
Stephan Samuel6-Jun-06 4:08
Stephan Samuel6-Jun-06 4:08 
GeneralRe: Get file that spawned the application. Pin
cmarcus6-Jun-06 5:58
cmarcus6-Jun-06 5:58 
AnswerRe: Get file that spawned the application. Pin
J4amieC6-Jun-06 4:11
J4amieC6-Jun-06 4:11 
AnswerRe: Get file that spawned the application - New Problem Pin
cmarcus6-Jun-06 8:44
cmarcus6-Jun-06 8:44 
QuestionShared Add-in for Excel 2003 and Garbage Collector Pin
Kadur6-Jun-06 3:55
Kadur6-Jun-06 3:55 
QuestionObject lifetime, GC and the State Pattern [modified] Pin
User 66586-Jun-06 3:54
User 66586-Jun-06 3:54 
AnswerRe: Object lifetime, GC and the State Pattern [modified] Pin
Stephan Samuel6-Jun-06 4:03
Stephan Samuel6-Jun-06 4:03 
GeneralRe: Object lifetime, GC and the State Pattern [modified] Pin
User 66586-Jun-06 4:07
User 66586-Jun-06 4:07 

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.