Can someone explain what I'm doing wrong, and provide a sample that works?
Sub FillCombo() Dim i As Integer, M As String For i = 0 To 19 cboBookmarks.SelectedValue = "Id" & Str(i) M = "Data" & Str(i) cboBookmarks.SelectedText = M cboBookmarks.Items.Add(M) Next (i) cboBookmarks.Text = "item" End Sub Private Sub cboBookmarks_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cboBookmarks.SelectedIndexChanged Dim index As Integer = cboBookmarks.SelectedIndex Dim Item As String = cboBookmarks.SelectedItem Dim Value As String = cboBookmarks.SelectedValue ' MsgBox("Selected = '" & Item & "', and the ID Value ='" & Value & "'") RunMMtest.Focus() End Sub
|Multiple file Upload asp.net||2||40|
|WPF - Tooltips for ComboBox items||5||38|
|Definitions and default visual studio colors||5||58|
|Show/Hide ASP.NET controls with JQuery best practices||3||20|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
12 Experts available now in Live!