If ListBox1.SelectedIndex <> -1 Then
MsgBox(ListBox1.SelectedItem.ToString)
End If
--
OHM ( Terry Burns ) * Use the following to email me *
Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
--
"Matthew" <tu*************@alltel.net> wrote in message
news:O0**************@tk2msftngp13.phx.gbl...
I have a listbox that I would like to retrieve the value of the item in the
list. However, the following does not work because apparently
ListBox1.SelectedItem doesn't have a text attribute.
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As
System.Object,
ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
MsgBox(ListBox1.SelectedItem.text)
End Sub
How is this done?
Matthew