1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
'Variables de propriétés:
Dim m_DataGrid As Control
Public Property Get DataGrid() As Object
Set DataGrid = m_DataGrid
End Property
Public Property Set DataGrid(ByVal New_DataGrid As Control)
Set m_DataGrid = New_DataGrid
PropertyChanged "DataGrid"
End Property
'Charger les valeurs des propriétés à partir du stockage
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
Set m_DataGrid = PropBag.ReadProperty("DataGrid", Nothing)
End Sub
'Écrire les valeurs des propriétés dans le stockage
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty("DataGrid", m_DataGrid, Nothing)
End Sub |
Partager