home *** CD-ROM | disk | FTP | other *** search
-
- Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
-
- ' Write properties to the property bag.
- PropBag.WriteProperty "Caption", Caption, Ambient.DisplayName
-
- End Sub
-
-
- Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
-
- ' If the control's container is in design mode,
- ' disable the Timer, which causes the control to
- ' not function.
- tmrChkStatus.Enabled = Ambient.UserMode
-
- ' Read properties from the property bag.
- Caption = PropBag.ReadProperty("Caption", Ambient.DisplayName)
-
- End Sub
-