"Brad Shook" <bsh...@echd.org.removeme> wrote in message
news:ObM8rQts...@TK2MSFTNGP10.phx.gbl...
Not as such but I made simple replacement for it.
Try at http://www.jmedved.com?findbyname=tagitem.
--
Pozdrav,
Josip Medved, MCSD
http://www.jmedved.com
--
Mike
Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"Sivaprasad" <sshan...@hotmail.com> wrote in message
news:OyGL7Mts...@tk2msftngp13.phx.gbl...
> Hi,
>
> I have a combo box which displays FirstName+ Last Name of a person.
> I want to store their id's in the combo like we store in ItemData of VB 6
> combo box.
> Is there any itemdata equivalent in VB.Net Combo?
>
****************************************
SQL = "Select distinct office from tblrace"
objRetrieve = objDatabase.RetrieveDataAccess(SQL)
While objRetrieve.Read
'My class has to items.One is office and the other is "Candidate name" both
are strings.In here I am adding only office
objclsCombo.Office = objRetrieve.Item("Office")
cboRace.Items.Add(objclsCombo)
End While
*****************************************
I put this code in this event, its always giving the last item in the combo.
but the combo shows the selected item.
Private Sub cboRace_SelectedValueChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles cboRace.SelectedValueChanged
MessageBox.Show(CType(cboRace.SelectedItem, clsComboRace).Office.ToString)
end sub
**************************************************************
Siva
"Mike McIntyre" <mik...@dotnetshowandtell.com> wrote in message
news:uE%23m4Qts...@TK2MSFTNGP12.phx.gbl...