PDA

Click to See Complete Forum and Search --> : Getting the List & ItemData properties to display in the properties window


daveducks
Jun 5th, 2001, 07:17 AM
Hi

I am developing a simple ActiveXControl which has all the properties and methods of a standard visual basic List Box control with some enhancements.

I need to expose the ItemData And List properties to the developer and have mapped them using the ActiveX Control Interface Wizard. Sure enough the Get/Let property code appears, but they do not appear in the properties window when I place the ActiveX control in the EXE project. Can anyone help please?

thanks,

Andrew.

lawdog111
Jun 5th, 2001, 10:21 AM
I had this same problem last week with a combobox & did not actually get the perfect solution to the problem. I know that the answer has something to do with the fact that you must make the properties persist by putting them into & reading them out of the property bag. Unfortunately the wizard can't do this for you for the itemdata & list properties because they are arrays. I'm way too much of a newbie to have any idea how to do it myself so you're on your own there. What I realized is that list & itemdata do not appear on the properties menu because they are not persisted. But this does not mean that you can not use them! You can still set them through code. It actually didn't affect my program at all! The only restriction is that you can type in these properties in the property window and of course they will not persist (ie they must be set in code each time they are used, the list wont stay with the control).

-Leon Whitcomb