
VB6: Property Sheets Bug?, Custom Controls and properties
Howdy,
I've created a rather nifty activex control in VB, but I think I might
have come across a bug in VB 6. I already have SP2 BTW.
I've used the writeproperty() event to write the properties off to the
PropBag to make them persistent. I've placed a few msgbox messages to
indicate when this is called.
Using this control in another project, if I change a property directly
from the properties window and click on save this function IS called,
thus the project may be reloaded and the properties will be correct so
far so good :).
However if I use the property sheet to change the properties things
start going wrong.
1. Firstly the changes are being applied to the object but the
properties window doesn't refresh to indicate this. I need to unselect
the instance of the activex control on the form then reselect it to see
the refreshed version in the properties window.
2. Also when I click on save, the writeproperty function is not called
thus any customisations the developer has made are not saved when the
project is saved thus when it is reloaded the default values appear.
I would like to know if anyone else has found this problem and how they
solved it.
bye bye...
------------------
Philip M. Galea
http://www.*-*-*.com/ ~ceepmg/
Sent via Deja.com http://www.*-*-*.com/
Share what you know. Learn what you don't.