Visual Basic 2008 EssentialsIf you are new to Visual Basic programming with version 2008, this is the place to start your questions.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Visual Basic 2008 Essentials section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
'MessageBox.Show(txtPerson.Text.ToString)
'this messagebox works when I run it
'please can you help me to show text in listbox?
lstDisplay.Show.txtPerson.Text.ToString()
'the error Expression does not produce a value
End Sub
End Class
can you be a little more clear as to what you are trying to do? are you trying to add the text of a text box to a listview? or highlight a listview item based on text in a textbox?