Click here to Skip to main content
16,005,209 members
Home / Discussions / C#
   

C#

 
Questionwhich textbox is entered? Pin
melanieab14-Dec-05 4:04
melanieab14-Dec-05 4:04 
AnswerRe: which textbox is entered? Pin
J4amieC14-Dec-05 4:21
J4amieC14-Dec-05 4:21 
GeneralRe: which textbox is entered? Pin
melanieab14-Dec-05 5:03
melanieab14-Dec-05 5:03 
AnswerRe: which textbox is entered? Pin
anandss14-Dec-05 11:11
anandss14-Dec-05 11:11 
QuestionProblem in gridview(asp.net (C#)) Pin
montu337714-Dec-05 3:56
montu337714-Dec-05 3:56 
QuestionTopMost property c# win forms Pin
fady_sayegh14-Dec-05 3:37
fady_sayegh14-Dec-05 3:37 
AnswerRe: TopMost property c# win forms Pin
xtroll14-Dec-05 4:53
xtroll14-Dec-05 4:53 
QuestionCombobox Pin
SpeBeeTo14-Dec-05 2:57
SpeBeeTo14-Dec-05 2:57 
Hi. I am a newbie in programming C#, and am having a mental block. I am programming for the pocketPC.

I have a Combobox named "Type" and have a list there. I want to show the results of the entry from the combobox into a text label.


For example,
I pick "fruit" from the combobox.
I want to display on the screen: "This food is a fruit"
If I pick "vegetable" from the combobox, it should display:
"This food is a vegetable"


Right now, I'm getting:
"This food is a 1"
"This food is a 2"


How can I make the 2 into vegetable?

This is what I have, and I have a feeling it has to do with the GetValue and/or GetOrdinal.... I just can't seem to get it to work....

TypeLabel.Text = rReader.GetValue(rReader.GetOrdinal("MovieType")).ToString();


Thanks... Sorry for such a dumb question. Sigh | :sigh: If I haven't given you enough code, let me know. I can always add more. Laugh | :laugh:
AnswerRe: Combobox Pin
albCode14-Dec-05 3:41
albCode14-Dec-05 3:41 
GeneralRe: Combobox Pin
SpeBeeTo14-Dec-05 3:46
SpeBeeTo14-Dec-05 3:46 
GeneralRe: Combobox Pin
albCode14-Dec-05 3:59
albCode14-Dec-05 3:59 
GeneralRe: Combobox Pin
SpeBeeTo14-Dec-05 6:36
SpeBeeTo14-Dec-05 6:36 
GeneralRe: Combobox Pin
tatchung14-Dec-05 19:01
tatchung14-Dec-05 19:01 
GeneralRe: Combobox Pin
albCode14-Dec-05 20:55
albCode14-Dec-05 20:55 
GeneralRe: Combobox Pin
SpeBeeTo15-Dec-05 1:28
SpeBeeTo15-Dec-05 1:28 
QuestionNew Combobox Challenge Pin
SpeBeeTo15-Dec-05 8:27
SpeBeeTo15-Dec-05 8:27 
QuestionCan somebody suggest me which Data Object to use in a database independent project(oracle or sqlserver) Pin
YogeshChoudhary14-Dec-05 1:08
YogeshChoudhary14-Dec-05 1:08 
AnswerRe: Can somebody suggest me which Data Object to use in a database independent project(oracle or sqlserver) Pin
xtroll14-Dec-05 1:41
xtroll14-Dec-05 1:41 
QuestionConversion of Hexadecimal into Binary format Pin
kansalSunny14-Dec-05 0:44
kansalSunny14-Dec-05 0:44 
AnswerRe: Conversion of Hexadecimal into Binary format Pin
Vikram A Punathambekar14-Dec-05 1:15
Vikram A Punathambekar14-Dec-05 1:15 
AnswerRe: Conversion of Hexadecimal into Binary format Pin
Guffa14-Dec-05 1:15
Guffa14-Dec-05 1:15 
QuestionTo Convert Julian Time Calendar Date? Pin
MudkiSekhon14-Dec-05 0:29
MudkiSekhon14-Dec-05 0:29 
AnswerRe: To Convert Julian Time Calendar Date? Pin
Polis Pilavas14-Dec-05 2:04
Polis Pilavas14-Dec-05 2:04 
Questionextra row in datagrid Pin
Greeky14-Dec-05 0:16
Greeky14-Dec-05 0:16 
AnswerRe: extra row in datagrid Pin
J4amieC14-Dec-05 0:40
J4amieC14-Dec-05 0:40 

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.