read a combo binded by code

  • Thread starter NewsGroup de Microsoft
  • Start date
N

NewsGroup de Microsoft

i can bind a combo by coding with somethin' like that:

Me.ComboBox1.DataSource = dataset

Me.ComboBox1.DisplayMember = "tabla.Descripcion"

Me.ComboBox1.ValueMember = "tabla.idPublicoObjetivo"



but i can't read it:

i think it should somethin' like:



Me.Label1.Text = Me.ComboBox1.SelectedText.ToString

Me.Label2.Text = Me.ComboBox1.SelectedValue



but it doesnt work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top