Click here to Skip to main content
15,167,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: What are the references for the code bellow Pin
jojoba20119-May-12 18:43
Memberjojoba20119-May-12 18:43 
QuestionUser Settings Not Persisting Pin
Kevin Marois8-May-12 11:53
professionalKevin Marois8-May-12 11:53 
AnswerRe: User Settings Not Persisting Pin
SledgeHammer018-May-12 14:03
MemberSledgeHammer018-May-12 14:03 
GeneralRe: User Settings Not Persisting Pin
Kevin Marois9-May-12 7:55
professionalKevin Marois9-May-12 7:55 
GeneralRe: User Settings Not Persisting Pin
SledgeHammer019-May-12 8:11
MemberSledgeHammer019-May-12 8:11 
QuestionJaggedarray Null Reference Exception Pin
ariez888-May-12 11:07
Memberariez888-May-12 11:07 
AnswerRe: Jaggedarray Null Reference Exception Pin
Richard MacCutchan8-May-12 22:53
mveRichard MacCutchan8-May-12 22:53 
AnswerRe: Jaggedarray Null Reference Exception Pin
V.8-May-12 22:56
professionalV.8-May-12 22:56 
I'm not sure if I understood everything correctly, but if you don't want PossibleValues to contain a number 0. I think you should change the method "PossibleNumbers" to return an array that does not contain a 0.

I also think 'new PossibleValues[i]' is wrong. PossibleValues[i] has a value you cannot re-instantiate it.
Probably you need something like (pseudocode):

C#
if value = 0
  CreateNewRandom int between 1 and x  // again this should be actually done in PossibleNumbers method.
  PossibleValues[i] = randomint
  JaggedArray[jaggedVar][i] = PossibleValues[i]


hope this helps.
V.

GeneralRe: Jaggedarray Null Reference Exception Pin
ariez889-May-12 3:49
Memberariez889-May-12 3:49 
GeneralRe: Jaggedarray Null Reference Exception Pin
ariez889-May-12 3:53
Memberariez889-May-12 3:53 
GeneralRe: Jaggedarray Null Reference Exception Pin
V.9-May-12 3:59
professionalV.9-May-12 3:59 
GeneralRe: Jaggedarray Null Reference Exception Pin
ariez889-May-12 8:15
Memberariez889-May-12 8:15 
GeneralRe: Jaggedarray Null Reference Exception Pin
V.9-May-12 20:55
professionalV.9-May-12 20:55 
GeneralRe: Jaggedarray Null Reference Exception Pin
ariez889-May-12 21:02
Memberariez889-May-12 21:02 
GeneralRe: Jaggedarray Null Reference Exception Pin
V.9-May-12 21:11
professionalV.9-May-12 21:11 
QuestionHow to open File using System.Diagnostics.Start in the Base Root directory Pin
nassimnastaran8-May-12 10:52
Membernassimnastaran8-May-12 10:52 
GeneralRe: How to open File using System.Diagnostics.Start in the Base Root directory Pin
nassimnastaran8-May-12 11:33
Membernassimnastaran8-May-12 11:33 
GeneralRe: How to open File using System.Diagnostics.Start in the Base Root directory Pin
Dave Kreskowiak8-May-12 14:15
mveDave Kreskowiak8-May-12 14:15 
AnswerRe: How to open File using System.Diagnostics.Start in the Base Root directory Pin
Luc Pattyn8-May-12 15:07
sitebuilderLuc Pattyn8-May-12 15:07 
GeneralRe: How to open File using System.Diagnostics.Start in the Base Root directory Pin
nassimnastaran9-May-12 5:46
Membernassimnastaran9-May-12 5:46 
QuestionC# forms Pin
Member 89392888-May-12 3:21
MemberMember 89392888-May-12 3:21 
AnswerRe: C# forms Pin
Pete O'Hanlon8-May-12 3:29
mvaPete O'Hanlon8-May-12 3:29 
AnswerRe: C# forms Pin
Tim Groven8-May-12 6:58
MemberTim Groven8-May-12 6:58 
AnswerRe: C# forms Pin
Reegan Durai.m8-May-12 20:16
MemberReegan Durai.m8-May-12 20:16 
QuestionC# dice program (combobox selection) Pin
Angel_788-May-12 2:19
MemberAngel_788-May-12 2:19 

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.