Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Properties in ActiveX Controls
Message
De
14/08/2003 13:02:22
 
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00820165
Message ID:
00820229
Vues:
12
This message has been marked as the solution to the initial question of the thread.
In addition to Brian Seekford's message, here is sample code for using Property Bag in your case:
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)

  nDateFormat = PropBag.ReadProperty("DateFormat", YMD_Format) 'YMD_Format is assigned to nDateFormat if reading is not successful
End Sub

Private Sub UserControl_WriteProperties(PropBag As PropertyBag)

  Call PropBag.WriteProperty("DateFormat", nDateFormat, YMD_Format) 'YMD_Format is written if nDateFormat is empty
EndSub
In addition, move call to InitDateFormat into UserControl_InitProperties event.

Plamen Ivanov
MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000)
MCSD (VB 6.0/SQL Server 2000)

VB (.NET) - what other language do you need in the whole Universe?...

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform