Sorry to trouble y'all again, but the MSDN site (http://msdn.microsoft.com/library/de...lecontrols.asp
) says when binding a constituent control to a property of a custom actives control, use the following:
Property Get AddressLine1() As String
AddressLine1 = txtAddressLine1.Text
Public Property Let AddressLine1(NewValue As String)
txtAddressLine1.Text = NewValue
' The following line tells Visual Basic the
' property has changed--if you omit this line,
' the data source will not be updated!
So for my project, I did it:
Public Property Get dim1() As Single
dim1 = txtdim1.text
Public Property Let dim1(ByVal New_Dim1 As Single)
If CanPropertyChange("Dim1") Then
txtdim1.Text = New_Dim1
The problem is that I get a Type Mismatch error in my Property Get procedure: dim1=txtdim1.text line when I try to click on the txtdim1 textbox in design mode. I even get the same error if I use dim1=CSng(txtdim1.text). Any reason why this should be?