Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
General3d Party Controls Pin
RB@Emphasys9-May-03 5:13
RB@Emphasys9-May-03 5:13 
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 
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 
well, i thought this would work, but it doesnt..
this.cbCountyDefault.BeginUpdate();
for (int i = 0; i < m_saCountyRecords.Count; i++)
{
	GASTCountyRecord objRecord = (GASTCountyRecord)m_saCountyRecords[i];
	this.cbCountyDefault.Items.Add(objRecord);
}

this.cbCountyDefault.SelectedIndex = 0;
this.cbCountyDefault.EndUpdate();

MessageBox.Show(cbCountyDefault.SelectedItem.ToString());
MessageBox.Show(((GASTCountyRecord)this.cbCountyDefault.SelectedItem).ToString());
the first messagebox shows the objects name, and the one where i cast it shows the corect name..

the listing in the combobox lists the class name because it populates this by calling Object.ToString() not by casting it to my object type then calling ToString().. any other suggestions?


still a newb.. cut me some slack :P
-dz
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 

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.