We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Change Locale for Crystal Reports Dynamically in VB.Net 2010 Winforms.||3||59|
|make control visible based off other control value||7||45|
|How do i create a simple array in a public class?||6||38|
|VB .net 2010 Byte array||2||24|
Join the community of 500,000 technology professionals and ask your questions.