11-21-2012, 12:04 PM
As Snake_eyes suggested (Thanks!), this code should definitely work. The error may be appearing due to the fact that a valid item is not actually being selected. You can try to make sure an item is being selected by checking first, like so:
[code2=vbnet]If Not (kryptonListBox1.SelectedItem Is Nothing) Then
textBoxX1.Text = kryptonListBox1.SelectedItem.ToString
End If[/code2]
[code2=vbnet]If Not (kryptonListBox1.SelectedItem Is Nothing) Then
textBoxX1.Text = kryptonListBox1.SelectedItem.ToString
End If[/code2]