I have this code for a UserControl called fnd. What I want is to make the ContactNumber property the default property. For example, with a textbox called txt you can do vMyText = txt and it returns the default Text property. How do I make ContactNumber the default?

VB Code:
  1. Option Explicit
  2.  
  3. Private mvContactNumber
  4.  
  5. Public Property Get ContactNumber() As Long
  6.   ContactNumber = mvContactNumber
  7. End Property
  8.  
  9. Public Property Let ContactNumber(ByVal pContactNumber As Long)
  10.   If pContactNumber > 0 Then
  11.     UserControl.PropertyChanged ContactNumber
  12.     txt.Text = pContactNumber
  13.   End If
  14. End Property
  15.  
  16. Private Sub txt_Change()
  17.   With txt
  18.   If .Text = Val(.Text) Then
  19.     mvContactNumber = .Text
  20.   Else
  21.     mvContactNumber = 0
  22.   End If
  23. End Sub
  24.  
  25. Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
  26.   ContactNumber = PropBag.ReadProperty("ContactNumber", 0)
  27. End Sub
  28.  
  29. Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
  30.   PropBag.WriteProperty "ContactNumber", ContactNumber, 0
  31. End Sub