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

C#

 
GeneralRe: ComboBox not properly adding items Pin
Jordanwb19-Apr-08 15:53
Jordanwb19-Apr-08 15:53 
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 
Hi,

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.

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().

Just logging the ToArray() result should pinpoint the problem.

I do not like your attitude on things that first don't work, then suddenly do work.
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.

I leave this thread here and now, its length exceeds its weight. Dead | X|

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralRe: ComboBox not properly adding items Pin
Jordanwb21-Apr-08 2:46
Jordanwb21-Apr-08 2:46 
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 

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.