hi,
i've just started fooling around with classes in vb.

could someone tell me why this is returning with an error saying 'method or data member not found'?
thanks

//class module

Option Explicit
Private c_name

Public Property Get labelname() As String
labelname = c_name
End Property

Public Property Let labelname(ByVal name As String)
c_name = name
End Property

//form
Public Sub Command1_Click()
Label1.labelname = "john"
End Sub