Click here to Skip to main content
15,891,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSending mail Pin
spyatnoon25-Nov-04 8:57
spyatnoon25-Nov-04 8:57 
GeneralCommand button: put text right next to icon Pin
shinay25-Nov-04 7:34
shinay25-Nov-04 7:34 
Generalcall the click event of a button Pin
jlawren725-Nov-04 6:55
jlawren725-Nov-04 6:55 
GeneralRe: call the click event of a button Pin
Tom John26-Nov-04 4:53
Tom John26-Nov-04 4:53 
Generalnotepad finding Pin
pranav.net25-Nov-04 6:48
pranav.net25-Nov-04 6:48 
GeneralRe: notepad finding Pin
Pablo.ar25-Nov-04 17:49
Pablo.ar25-Nov-04 17:49 
GeneralConcatenating multiple datatables Pin
JoeContreras25-Nov-04 4:27
JoeContreras25-Nov-04 4:27 
Questioncombo box item values - Possible? Pin
cwayman25-Nov-04 2:21
cwayman25-Nov-04 2:21 
hey,

i am trying to assign values to my combo box items. I thought that as you add an item to a combo box you could also just add a value.

I am having great trouble doing this.

i have a datatable with a 'name' and 'id' column. i want the combo box to display the name but when it is selected to get the id.

i currently have the following code

cmboConnections.DisplayMember = "name"

     For i = 0 To connectionTable.Rows.Count - 1

         If Not connectionTable.Rows(i).Item("name") Is Nothing Then

             cmboConnections.Items.Add(connectionTable.Rows(i).Item("name"))
             cmboConnections.ValueMember = connectionTable.Rows(i).Item("ID")

         End If
     Next


I am unable to find any property wher you can just combobox.SelectedItem.Value or combobox.Item(X).Value. Is there any way to set a value of a item in a combo box?

Thanks for your help
Chris
AnswerRe: combo box item values - Possible? Pin
cwayman25-Nov-04 5:35
cwayman25-Nov-04 5:35 
Questionhow to set the backcolor of the colomn header in vb.net Pin
Member 125367924-Nov-04 23:25
Member 125367924-Nov-04 23:25 
GeneralVB.net Setup Pin
nitin_ion24-Nov-04 20:30
nitin_ion24-Nov-04 20:30 
GeneralRe: VB.net Setup Pin
Dave Kreskowiak26-Nov-04 3:31
mveDave Kreskowiak26-Nov-04 3:31 
GeneralLoading bulky XML into dataset Pin
atulpatel_mca24-Nov-04 18:22
atulpatel_mca24-Nov-04 18:22 
GeneralRe: Loading bulky XML into dataset Pin
Dave Kreskowiak25-Nov-04 5:19
mveDave Kreskowiak25-Nov-04 5:19 
Generalserver.mapPath Pin
pyb24-Nov-04 17:31
pyb24-Nov-04 17:31 
GeneralRe: server.mapPath Pin
Dave Kreskowiak25-Nov-04 5:17
mveDave Kreskowiak25-Nov-04 5:17 
GeneralDatabase Management in VB.net Pin
fibman24-Nov-04 13:50
fibman24-Nov-04 13:50 
GeneralRe: Database Management in VB.net Pin
Chaos Machine25-Nov-04 15:52
Chaos Machine25-Nov-04 15:52 
GeneralRequested Registry Access is Not Allowed Pin
KreativeKai24-Nov-04 9:09
professionalKreativeKai24-Nov-04 9:09 
GeneralRe: Requested Registry Access is Not Allowed Pin
Dave Kreskowiak24-Nov-04 10:37
mveDave Kreskowiak24-Nov-04 10:37 
GeneralRe: Requested Registry Access is Not Allowed Pin
KreativeKai29-Nov-04 8:42
professionalKreativeKai29-Nov-04 8:42 
GeneralRe: Requested Registry Access is Not Allowed Pin
KreativeKai9-Dec-04 8:45
professionalKreativeKai9-Dec-04 8:45 
GeneralVBScript for automating USB installation Pin
Bri4hire24-Nov-04 8:03
Bri4hire24-Nov-04 8:03 
GeneralRe: VBScript for automating USB installation Pin
Dave Kreskowiak24-Nov-04 10:33
mveDave Kreskowiak24-Nov-04 10:33 
GeneralRe: VBScript for automating USB installation Pin
Anonymous24-Nov-04 13:22
Anonymous24-Nov-04 13:22 

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.