Click here to Skip to main content
15,892,298 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionComboBox help Pin
RyJaBy8-Jul-10 3:33
RyJaBy8-Jul-10 3:33 
AnswerRe: ComboBox help PinPopular
Wayne Gaylard8-Jul-10 4:24
professionalWayne Gaylard8-Jul-10 4:24 
GeneralRe: ComboBox help Pin
RyJaBy8-Jul-10 4:34
RyJaBy8-Jul-10 4:34 
AnswerRe: ComboBox help Pin
Scubapro8-Jul-10 4:27
Scubapro8-Jul-10 4:27 
GeneralRe: ComboBox help Pin
RyJaBy8-Jul-10 4:34
RyJaBy8-Jul-10 4:34 
AnswerRe: ComboBox help Pin
Luc Pattyn8-Jul-10 8:15
sitebuilderLuc Pattyn8-Jul-10 8:15 
GeneralRe: ComboBox help Pin
Scubapro8-Jul-10 20:17
Scubapro8-Jul-10 20:17 
AnswerRe: ComboBox help Pin
programmervb.netc++11-Jul-10 18:29
programmervb.netc++11-Jul-10 18:29 
I hate to admit it but I just recently learned this. I believe what you are trying to do is display one value and use another that is associated with it for something else.

The easiest way I have seen this done is to use the DisplayMember and the ValueMember properties of the combo box like I said I just figured this out and it has made my life so much easier than the old way we handled it. So in your case you would use.

cboMyCombo.DisplayMember = "Drive Time"
cboMyCombo.ValueMember = "002302"

Msgbox(cboMyCombo.ValueMember.ToString())



I did not compile that code it may or may not work but you get the general idea.
Humble Programmer

GeneralRe: ComboBox help Pin
Scubapro13-Jul-10 3:56
Scubapro13-Jul-10 3:56 
AnswerRe: ComboBox help Pin
Neville Nazerane20-Jul-10 2:37
Neville Nazerane20-Jul-10 2:37 
QuestionHow to Fill Color in Outer Area Of ARC Pin
Anubhava Dimri8-Jul-10 2:21
Anubhava Dimri8-Jul-10 2:21 
AnswerRe: How to Fill Color in Outer Area Of ARC Pin
Eddy Vluggen8-Jul-10 3:14
professionalEddy Vluggen8-Jul-10 3:14 
GeneralRe: How to Fill Color in Outer Area Of ARC Pin
Anubhava Dimri8-Jul-10 18:23
Anubhava Dimri8-Jul-10 18:23 
GeneralRe: How to Fill Color in Outer Area Of ARC Pin
Eddy Vluggen9-Jul-10 3:35
professionalEddy Vluggen9-Jul-10 3:35 
QuestionAuto paginaton in sql Pin
Ebube8-Jul-10 0:23
Ebube8-Jul-10 0:23 
AnswerRe: Auto paginaton in sql Pin
Scubapro8-Jul-10 1:21
Scubapro8-Jul-10 1:21 
Questionhelp on bluetooth application in vb.net Pin
Folad System7-Jul-10 22:38
Folad System7-Jul-10 22:38 
AnswerRe: help on bluetooth application in vb.net Pin
Johan Hakkesteegt7-Jul-10 22:53
Johan Hakkesteegt7-Jul-10 22:53 
GeneralRe: help on bluetooth application in vb.net Pin
Smithers-Jones8-Jul-10 1:11
Smithers-Jones8-Jul-10 1:11 
AnswerRe: help on bluetooth application in vb.net Pin
Dave Kreskowiak8-Jul-10 3:26
mveDave Kreskowiak8-Jul-10 3:26 
AnswerRe: help on bluetooth application in vb.net Pin
Smithers-Jones8-Jul-10 4:01
Smithers-Jones8-Jul-10 4:01 
AnswerRe: help on bluetooth application in vb.net Pin
Yusuf8-Jul-10 9:59
Yusuf8-Jul-10 9:59 
Question. Pin
karen197-Jul-10 21:50
karen197-Jul-10 21:50 
AnswerRe: . Pin
Johan Hakkesteegt7-Jul-10 22:48
Johan Hakkesteegt7-Jul-10 22:48 
AnswerRe: . Pin
Smithers-Jones8-Jul-10 1:11
Smithers-Jones8-Jul-10 1:11 

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.