|
-
October 23rd, 2001, 03:20 PM
#1
Custom ActiveX based on MSFlexGrid
Hi.
I have custom active X control, based on MSFlexGrid.
My question is about those properties that accept input
parameters(like ColWidth).
For example, I have the following code in custom active X, where
ControlObject is the original MSFlexGrid control (nothing fancy,
directly Let and Get the properties from the original).
public property get ColWidth(byval Index as Long) as Long
ColWidth = ControlObject.ColWidth(Index)
End property
public property let ColWidth(byval Index as Long, byval New_ColWidth as Long)
ControlObject.ColWidth(Index) = New_ColWidth
PropertyChanged "ColWidth"
End property
The question is -> how do I go about storing these properties
by using PropertyBag object? In other words can somebody provide
a code example of how to use ReadProperty and WriteProperty here.
And do I need to initialize it thru InitProperties as well?
Any help would be greatly appreciated.
Ella
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|