Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Properties in ActiveX Controls
Message
From
14/08/2003 13:02:22
 
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00820165
Message ID:
00820229
Views:
11
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?...

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform