Customer.vb:
I don't see any reference needed for the 'lstCustomer' textbox code. It's only used in Form.
vb. Are you sure you didn't misplace some codes?
Form.vb: [u]Error SelectedCustomer, not declared</u>
You seem to have forgotten to input this code inside Form.
vb:
Public ReadOnly Property SelectedCustomer() As Customer
Get
If lstCustomers.SelectedIndex <> -1 Then
'Return lstCustomers.Items(lstCustomers.SelectedIndex)
Return objCustomers(lstCustomers.SelectedIndex)
End If
End Get
End Property
[u]DialogResult.Yes</u>
It happens to me all the times, I think VS 2005 won't let it as compared to whatever IDE's version the author is using.
All you have to do is to replace [u]DialogResult.Yes</u> with [u]Windows.Forms.DialogResult.Yes</u>