Click here to Skip to main content
15,890,670 members
Home / Discussions / C#
   

C#

 
GeneralRe: Project Installer - Installing Fonts? [modified] Pin
Filip van der Meeren10-Dec-06 9:25
Filip van der Meeren10-Dec-06 9:25 
GeneralRe: Project Installer - Installing Fonts? Pin
wbjohnson10-Dec-06 9:29
wbjohnson10-Dec-06 9:29 
Questiongetting the values from unbound DatagridviewcomboBoxColumns ??? Pin
Rocky#10-Dec-06 7:05
Rocky#10-Dec-06 7:05 
Questionruning a *.exe file Pin
hadad10-Dec-06 6:54
hadad10-Dec-06 6:54 
AnswerRe: runing a *.exe file Pin
gnadeem10-Dec-06 7:10
gnadeem10-Dec-06 7:10 
GeneralRe: runing a *.exe file Pin
karam chandrabose10-Dec-06 8:12
karam chandrabose10-Dec-06 8:12 
QuestionPopulating a ComboBox Pin
Civic0610-Dec-06 5:33
Civic0610-Dec-06 5:33 
AnswerRe: Populating a ComboBox Pin
teejayem10-Dec-06 5:48
teejayem10-Dec-06 5:48 
i don't think you can manually set a value to a comboBox item. You can however get the selectedIndex for that item that is chosen.

ex:
comboBox1.Items.Add("US");
comboBox1.Items.Add("CA");
//store it in a string
string value = comboBox1.SelectedIndex.ToString();
//store it as an int
int value = comboBox1.SelectedIndex;


So if US is selected it will store "0" in the variable "value". If CA is selected it would store "1" etc. Let me know if this helps you.

Don't be overcome by evil, but overcome evil with good

AnswerRe: Populating a ComboBox Pin
Robert Rohde10-Dec-06 5:53
Robert Rohde10-Dec-06 5:53 
AnswerRe: Populating a ComboBox Pin
Luis Alonso Ramos10-Dec-06 7:15
Luis Alonso Ramos10-Dec-06 7:15 
Questiontelephonic application Pin
amgag10-Dec-06 5:04
amgag10-Dec-06 5:04 
QuestionHow to search/replace words in a pre-formatted pdf file Pin
babbelfisken10-Dec-06 3:59
babbelfisken10-Dec-06 3:59 
Questionsend data over modem Pin
sianatia10-Dec-06 1:55
sianatia10-Dec-06 1:55 
QuestionMarshaling a string to a native dll... Pin
Shy Agam10-Dec-06 1:16
Shy Agam10-Dec-06 1:16 
AnswerRe: Marshaling a string to a native dll... Pin
Luc Pattyn10-Dec-06 1:49
sitebuilderLuc Pattyn10-Dec-06 1:49 
QuestionHow can I implement "OLE object" with C# and SQL Pin
devloperx10-Dec-06 0:09
devloperx10-Dec-06 0:09 
AnswerRe: How can I implement "OLE object" with C# and SQL Pin
devloperx10-Dec-06 2:21
devloperx10-Dec-06 2:21 
QuestionWorkgroup name of local host Pin
cashi_qau9-Dec-06 23:13
cashi_qau9-Dec-06 23:13 
GeneralRe: Workgroup name of local host Pin
gnadeem10-Dec-06 3:10
gnadeem10-Dec-06 3:10 
QuestionString - ValueType or ReferenceType? Pin
Shy Agam9-Dec-06 22:43
Shy Agam9-Dec-06 22:43 
AnswerRe: String - ValueType or ReferenceType? Pin
Christian Graus9-Dec-06 23:23
protectorChristian Graus9-Dec-06 23:23 
GeneralRe: String - ValueType or ReferenceType? Pin
Shy Agam9-Dec-06 23:26
Shy Agam9-Dec-06 23:26 
GeneralRe: String - ValueType or ReferenceType? Pin
Christian Graus9-Dec-06 23:30
protectorChristian Graus9-Dec-06 23:30 
GeneralRe: String - ValueType or ReferenceType? Pin
Shy Agam9-Dec-06 23:30
Shy Agam9-Dec-06 23:30 
AnswerRe: String - ValueType or ReferenceType? Pin
Robert Rohde9-Dec-06 23:25
Robert Rohde9-Dec-06 23:25 

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.