Click here to Skip to main content
15,917,174 members
Home / Discussions / C#
   

C#

 
GeneralRe: 3d Party Controls Pin
Stefan de Zeeuw10-May-03 2:16
professionalStefan de Zeeuw10-May-03 2:16 
Questioncombobox item values? Pin
dazinith9-May-03 3:39
dazinith9-May-03 3:39 
i am currently doing something like the following to a combobox:
(for int i = 0; i < 10; i++)
{
    MyObject objData = MyData.GetAt(i);
    this.cbMyComboBox.Items.Add(objData.strWord);
}

which adds the text to the combobox fine.. but what i really wanna do is set a data value for each item i add.. there are 'tag' values for tree controls, but i dont see anything like this for the combobox.. and if i just add the object then it displays the object type because it doesnt know what text to display..

im sure this is a common problem, just couldn't find the answer in the message boards..

thanks in advance!

still a newb.. cut me some slack :P
-dz
AnswerRe: combobox item values? Pin
RB@Emphasys9-May-03 9:13
RB@Emphasys9-May-03 9:13 
GeneralRe: combobox item values? Pin
dazinith9-May-03 9:39
dazinith9-May-03 9:39 
GeneralRe: combobox item values? Pin
RB@Emphasys9-May-03 9:49
RB@Emphasys9-May-03 9:49 
GeneralRe: combobox item values? Pin
dazinith9-May-03 9:52
dazinith9-May-03 9:52 
GeneralRe: combobox item values? Pin
dazinith14-May-03 8:25
dazinith14-May-03 8:25 
GeneralRe: combobox item values? Pin
dazinith14-May-03 8:47
dazinith14-May-03 8:47 
GeneralWYSIWYG HTML Editor Windows Control. Pin
Jonas Follesø8-May-03 22:42
Jonas Follesø8-May-03 22:42 
QuestionHow to extract anchors from applets Pin
benzite8-May-03 19:40
benzite8-May-03 19:40 
GeneralDetecting Connection Pin
Alex Korchemniy8-May-03 19:09
Alex Korchemniy8-May-03 19:09 
GeneralRe: Detecting Connection Pin
J. Dunlap8-May-03 20:11
J. Dunlap8-May-03 20:11 
GeneralBinding Pin
Jon Newman8-May-03 13:57
Jon Newman8-May-03 13:57 
GeneralRe: Binding Pin
David Stone8-May-03 14:21
sitebuilderDavid Stone8-May-03 14:21 
GeneralRe: Binding Pin
Jon Newman9-May-03 5:59
Jon Newman9-May-03 5:59 
GeneralRe: Binding Pin
leppie9-May-03 7:14
leppie9-May-03 7:14 
GeneralRe: Binding Pin
David Stone9-May-03 11:29
sitebuilderDavid Stone9-May-03 11:29 
QuestionGetTextMetrics in .NET ? Pin
monrobot138-May-03 11:39
monrobot138-May-03 11:39 
AnswerRe: GetTextMetrics in .NET ? Pin
David Stone8-May-03 12:32
sitebuilderDavid Stone8-May-03 12:32 
GeneralRe: GetTextMetrics in .NET ? Pin
monrobot139-May-03 3:31
monrobot139-May-03 3:31 
GeneralDrawing in RichTextEdit Pin
ctescu8-May-03 7:36
ctescu8-May-03 7:36 
GeneralRe: Drawing in RichTextEdit Pin
jhaga8-May-03 7:49
professionaljhaga8-May-03 7:49 
GeneralRe: Drawing in RichTextEdit Pin
ctescu8-May-03 7:53
ctescu8-May-03 7:53 
QuestionHiding/dynamically adding a tab page..?? Pin
vlusardi8-May-03 7:35
vlusardi8-May-03 7:35 
AnswerRe: Hiding/dynamically adding a tab page..?? Pin
ctescu8-May-03 7:43
ctescu8-May-03 7: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.