Click to See Complete Forum and Search --> : Custom ActiveX based on MSFlexGrid


ella_liberman
October 23rd, 2001, 03:20 PM
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