VB6: Property Sheets Bug?, Custom Controls and properties 
Author Message
 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.



Tue, 26 Feb 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Property Sheet of custom ActiveX Controls

2. BUG: MS Access - Calendar Control Not on Properties Sheet

3. Shape Sheet - Custom Properties

4. Q: Property Sheets / Property Page How to

5. VB6 Text property of UserControl does not work with UpDown Control's buddy property

6. Properties Property for a Custom Class

7. Custom DB properties and Document Properties (A97)

8. Custom Property Editors within the Property Grid

9. Creating properties of custom properties?

10. Properties sheet control

11. Property sheet control

12. How control and setting Pages Per Sheet on Document Properties

 

 
Powered by phpBB® Forum Software