Results 1 to 2 of 2

Thread: Getting the List & ItemData properties to display in the properties window

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    Oxfordshire
    Posts
    1

    Question Getting the List & ItemData properties to display in the properties window

    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.

  2. #2
    New Member
    Join Date
    May 2001
    Posts
    6
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width