Click here to Skip to main content
15,919,613 members
Home / Discussions / C#
   

C#

 
GeneralRe: ComboBox not properly adding items Pin
Luc Pattyn19-Apr-08 16:09
sitebuilderLuc Pattyn19-Apr-08 16:09 
GeneralRe: ComboBox not properly adding items Pin
Jordanwb19-Apr-08 16:27
Jordanwb19-Apr-08 16:27 
GeneralRe: ComboBox not properly adding items Pin
Luc Pattyn19-Apr-08 22:59
sitebuilderLuc Pattyn19-Apr-08 22:59 
GeneralRe: ComboBox not properly adding items Pin
Jordanwb20-Apr-08 4:09
Jordanwb20-Apr-08 4:09 
GeneralRe: ComboBox not properly adding items Pin
Luc Pattyn20-Apr-08 13:30
sitebuilderLuc Pattyn20-Apr-08 13:30 
GeneralRe: ComboBox not properly adding items [modified] Pin
Jordanwb20-Apr-08 16:07
Jordanwb20-Apr-08 16:07 
GeneralRe: ComboBox not properly adding items Pin
Luc Pattyn20-Apr-08 16:44
sitebuilderLuc Pattyn20-Apr-08 16:44 
GeneralRe: ComboBox not properly adding items Pin
Jordanwb21-Apr-08 2:46
Jordanwb21-Apr-08 2:46 
Luc Pattyn wrote:
I missed the relevance of HashMap due to your way of publishing code; instead of showing
real < and > signs you insert something that results in escape sequences, and instead
of using real PRE tags you use fake CODE tags; this makes reading your stuff rather hard.


Whoa there, that was the forum. As soon as I put in the < and > the forum changed them to the HTML escape characters.

Luc Pattyn wrote:
If the combobox does not show the right stuff and it gets populated by an
AddRange(categories.ToArray()) then either your observation is wrong or
the ToArray() method does not function properly, which is what I expect. I don't know
what your ToArray() returns, but combobox expects either a list of strings, or a list
of items that can be displayed by calling their ToString().


The AddRange method accepts an array of objects not strings. I did:

Category[] all_categories = categories.ToArray (); and it returned an array of Categories like I expected.

Luc Pattyn wrote:
I do not like your attitude on things that first don't work, then suddenly do work.


Well sorry for telling it like it is. That's what happened.

Luc Pattyn wrote:
If "code just starts working with everyone scratching their heads" then something is
definitely wrong; it could be your PC hardware or software; more likely it is a
lack of quality and robustness in your code, something that you must learn by
investigating problems until you SOLVE them, and not until they happen to disappear.


It's hard for simple, incredibly short code to be inefficient and unrobust. It's also hard for it to be my fault when it is adding them to the comboBox but not showing the actual text in the comboBox.

Luc Pattyn wrote:
I leave this thread here and now, its length exceeds its weight.


Okay fine.

Maybe if I retype everything a fourth time it will magically start working.
Question.NET certification? Pin
YAI19-Apr-08 13:58
YAI19-Apr-08 13:58 
AnswerRe: .NET certification? Pin
leckey19-Apr-08 14:48
leckey19-Apr-08 14:48 
AnswerRe: .NET certification? Pin
Zoltan Balazs19-Apr-08 23:19
Zoltan Balazs19-Apr-08 23:19 
QuestionNeed Help with SendInput for key commands Pin
Luke Dyer19-Apr-08 12:05
Luke Dyer19-Apr-08 12:05 
GeneralRe: Need Help with SendInput for key commands Pin
Dominik Reichl20-Apr-08 2:04
Dominik Reichl20-Apr-08 2:04 
QuestionHow to make AutoGeneration Code tools ? Pin
hdv21219-Apr-08 10:37
hdv21219-Apr-08 10:37 
AnswerRe: How to make AutoGeneration Code tools ? Pin
Mycroft Holmes19-Apr-08 17:31
professionalMycroft Holmes19-Apr-08 17:31 
GeneralDon't show ToolStripMenuItem in Taskbar Pin
Jordanwb19-Apr-08 9:56
Jordanwb19-Apr-08 9:56 
GeneralRe: Don't show ToolStripMenuItem in Taskbar Pin
hostar16-Oct-14 6:31
hostar16-Oct-14 6:31 
GeneralRead/write custom events to XML Pin
xax19-Apr-08 7:43
xax19-Apr-08 7:43 
GeneralRe: Read/write custom events to XML Pin
Guffa19-Apr-08 10:25
Guffa19-Apr-08 10:25 
GeneralRe: Read/write custom events to XML Pin
xax20-Apr-08 9:00
xax20-Apr-08 9:00 
QuestionIP version 6 input control ? Pin
nesaver8519-Apr-08 7:25
nesaver8519-Apr-08 7:25 
GeneralRe: IP version 6 input control ? Pin
Sam Xavier24-Apr-08 21:07
Sam Xavier24-Apr-08 21:07 
Questiondeploy windows service with additional tasks Pin
Knowledgestudent19-Apr-08 7:20
Knowledgestudent19-Apr-08 7:20 
GeneralRe: deploy windows service with additional tasks Pin
Charith Jayasundara20-Apr-08 2:53
Charith Jayasundara20-Apr-08 2:53 
QuestionTextBox problem Pin
Alessandra7719-Apr-08 7:12
Alessandra7719-Apr-08 7:12 

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.