Results 1 to 2 of 2

Thread: {RESOLVED} Imagelist and a User Control

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    {RESOLVED} Imagelist and a User Control

    I've created my own user control. It is very similar to the VS toolbox. What I wasn to beable to do is add an image to my menu items. So I have a property that allows the user to add an imagelist. That works fine. I have another property that is a collection of menu items. It allows the user to add a Main Menu Item and and array of Sub Menu Items. I used the UITypeEditor to create a property dlg for the IDE.

    My issue is I can't figure out how to pass the imagelist set in the property of the control to the other property's dlg box, so the user can select an image from it.

    Hope this is clear enough. Thanks.
    Last edited by mpdeglau; Nov 10th, 2005 at 05:01 PM.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2005
    Posts
    1,521

    Re: Imagelist and a User Control

    Well I figured out a way to do it. I don't know if there is a better way, so if you know please share. What I ended up doing was creating a module with an imagelist as a variable. When I set the imagelist property on my control I set that global variable as well, from there my UITypeEditor form can access that variable.

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