Click here to Skip to main content
15,881,092 members
Home / Discussions / C#
   

C#

 
Questiondrive name [modified] Pin
allenmpcx12-Jul-06 7:13
allenmpcx12-Jul-06 7:13 
AnswerRe: drive name Pin
Jun Du12-Jul-06 7:26
Jun Du12-Jul-06 7:26 
AnswerRe: drive name [modified] Pin
Dave Kreskowiak12-Jul-06 8:01
mveDave Kreskowiak12-Jul-06 8:01 
AnswerRe: drive name Pin
allenmpcx12-Jul-06 9:10
allenmpcx12-Jul-06 9:10 
GeneralRe: drive name Pin
Dave Kreskowiak13-Jul-06 7:03
mveDave Kreskowiak13-Jul-06 7:03 
QuestionSpecified Cast is not Valid Pin
TAREQ F ABUZUHRI12-Jul-06 6:42
TAREQ F ABUZUHRI12-Jul-06 6:42 
AnswerRe: Specified Cast is not Valid Pin
Ravi Bhavnani12-Jul-06 6:59
professionalRavi Bhavnani12-Jul-06 6:59 
AnswerRe: Specified Cast is not Valid Pin
microsoc12-Jul-06 18:02
microsoc12-Jul-06 18:02 
Perhaps this line has an error:
user = (UGUserNode) nodes[userGroupID];


try to use the "as" keyword for casting...
user = nodes[userGroupID] as UGUserNode;


then check if your variable user is null, if so it means it's not the same type as your UGUserNode class.
this i think is the safest way of casting if your not sure of the type of the object you want to cast.

hope this helps! Smile | :)



microsoc Cool | :cool:
QuestionWork Week Ranges Pin
TAREQ F ABUZUHRI12-Jul-06 6:39
TAREQ F ABUZUHRI12-Jul-06 6:39 
AnswerRe: Work Week Ranges Pin
Dustin Metzgar12-Jul-06 6:44
Dustin Metzgar12-Jul-06 6:44 
AnswerRe: Work Week Ranges Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:53
Ennis Ray Lynch, Jr.12-Jul-06 6:53 
Questionpassing value from datagrid Pin
la vie12-Jul-06 6:21
la vie12-Jul-06 6:21 
Questionhow to generate a beep sound Pin
donkaiser12-Jul-06 6:20
donkaiser12-Jul-06 6:20 
AnswerRe: how to generate a beep sound Pin
Ennis Ray Lynch, Jr.12-Jul-06 6:57
Ennis Ray Lynch, Jr.12-Jul-06 6:57 
GeneralRe: how to generate a beep sound Pin
donkaiser12-Jul-06 8:38
donkaiser12-Jul-06 8:38 
GeneralRe: how to generate a beep sound Pin
Ennis Ray Lynch, Jr.12-Jul-06 8:58
Ennis Ray Lynch, Jr.12-Jul-06 8:58 
AnswerRe: how to generate a beep sound Pin
engsrini12-Jul-06 8:06
engsrini12-Jul-06 8:06 
GeneralRe: how to generate a beep sound Pin
donkaiser12-Jul-06 8:56
donkaiser12-Jul-06 8:56 
QuestionHow can I disable a listBox item? Pin
AngryC12-Jul-06 6:12
AngryC12-Jul-06 6:12 
AnswerRe: How can I disable a listBox item? Pin
Not Active12-Jul-06 6:55
mentorNot Active12-Jul-06 6:55 
QuestionRead DiComm Headers Pin
jrandomuser12-Jul-06 5:56
jrandomuser12-Jul-06 5:56 
QuestionTooltip for a TrackBar control Pin
Jon Hulatt12-Jul-06 5:53
Jon Hulatt12-Jul-06 5:53 
AnswerRe: Tooltip for a TrackBar control Pin
alexey N12-Jul-06 21:22
alexey N12-Jul-06 21:22 
QuestionInstaller Project, Registry and Regasm Pin
Ranjan Banerji12-Jul-06 5:46
Ranjan Banerji12-Jul-06 5:46 
AnswerRe: Installer Project, Registry and Regasm Pin
Ranjan Banerji11-Sep-06 17:21
Ranjan Banerji11-Sep-06 17:21 

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.