Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
Questionloop in service. Pin
noamtzu004-Mar-10 8:29
noamtzu004-Mar-10 8:29 
AnswerRe: loop in service. Pin
Dave Kreskowiak4-Mar-10 9:07
mveDave Kreskowiak4-Mar-10 9:07 
QuestionString Arrays Pin
Darrall4-Mar-10 5:01
Darrall4-Mar-10 5:01 
AnswerRe: String Arrays Pin
PIEBALDconsult4-Mar-10 5:08
mvePIEBALDconsult4-Mar-10 5:08 
GeneralRe: String Arrays Pin
Darrall4-Mar-10 5:53
Darrall4-Mar-10 5:53 
GeneralRe: String Arrays Pin
PIEBALDconsult4-Mar-10 11:35
mvePIEBALDconsult4-Mar-10 11:35 
GeneralRe: String Arrays Pin
Darrall4-Mar-10 11:56
Darrall4-Mar-10 11:56 
AnswerRe: String Arrays Pin
harold aptroot4-Mar-10 5:17
harold aptroot4-Mar-10 5:17 
Darrall wrote:
Projects[PN] = textBoxAddNew.ToString();

The entry at PN doesn't exist yet, since Projects has a count of 0 at that line.

Darrall wrote:
Projects.Add(Projects[PN]);

This line almost never makes any sense (it can, sometimes). Even less in this case, since Projects[PN] can not exist (Projects still has a count of 0)

Just do Projects.Add(something) somewhere and forget about PN..?
And don't forget to add the rest of the things that you want in there - the way it is now you'd have just 1 item all the time (so sorting it does nothing)

Darrall wrote:
ctr <= PN

Why not just ctr < Projects.Count?
Then you could eliminate that confusing PN entirely

And please use a List<string>
GeneralRe: String Arrays Pin
Darrall4-Mar-10 6:01
Darrall4-Mar-10 6:01 
AnswerRe: String Arrays [modified] Pin
OriginalGriff4-Mar-10 5:35
mveOriginalGriff4-Mar-10 5:35 
GeneralRe: String Arrays Pin
Darrall4-Mar-10 5:58
Darrall4-Mar-10 5:58 
Questioncombobox height? Pin
Pawan Kiran4-Mar-10 3:53
Pawan Kiran4-Mar-10 3:53 
QuestionRe: combobox height? Pin
Eddy Vluggen4-Mar-10 4:16
professionalEddy Vluggen4-Mar-10 4:16 
AnswerRe: combobox height? Pin
Pawan Kiran4-Mar-10 4:26
Pawan Kiran4-Mar-10 4:26 
AnswerRe: combobox height? Pin
Luc Pattyn4-Mar-10 4:19
sitebuilderLuc Pattyn4-Mar-10 4:19 
AnswerRe: combobox height? Pin
Covean4-Mar-10 4:39
Covean4-Mar-10 4:39 
GeneralRe: combobox height? [modified] Pin
Pawan Kiran4-Mar-10 18:49
Pawan Kiran4-Mar-10 18:49 
GeneralRe: combobox height? Pin
Covean4-Mar-10 20:41
Covean4-Mar-10 20:41 
GeneralRe: combobox height? [modified] Pin
Pawan Kiran4-Mar-10 21:50
Pawan Kiran4-Mar-10 21:50 
GeneralRe: combobox height? Pin
Covean4-Mar-10 22:31
Covean4-Mar-10 22:31 
GeneralRe: combobox height? Pin
Pawan Kiran4-Mar-10 22:53
Pawan Kiran4-Mar-10 22:53 
GeneralRe: combobox height? Pin
Covean4-Mar-10 23:14
Covean4-Mar-10 23:14 
GeneralRe: combobox height? Pin
Pawan Kiran4-Mar-10 23:45
Pawan Kiran4-Mar-10 23:45 
GeneralRe: combobox height? Pin
Covean5-Mar-10 1:06
Covean5-Mar-10 1:06 
GeneralRe: combobox height? Pin
Pawan Kiran5-Mar-10 1:43
Pawan Kiran5-Mar-10 1:43 

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.