{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.
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.