hello,

i'm semi familiar with vb6 and the function of sending all my information in a listbox to the clipboard but i just cannot get it to work properly in vb.net. here is my code:

Dim x As Integer
x = ListBox1.ListCount
For x = 0 To (ListBox1.ListCount - 1)
If ListBox1.ListCount (x) = True Then GenerateText = GenerateText & ListBox1.List (x) & vbCrLf
Next
GenerateText = GenerateText & "" & vbCrLf
GenerateText = GenerateText & Text1.Text

It states

'ListCount' is not a member of 'System.Windows.Form.ListBox'

'List' is not a member of 'System.Windows.Form.ListBox'

as well as

'Text1' is not declared'

can someone shed some light on this for me ...much appreciated.


- justin