Select a control in another control's property
-
Has anyone seen any articles on how to do this: For example, the ASP.NET Validator Controls allow you to select a ControlToValidate in the property table. It's stored as a string, but if you click the drop down button, you get a list of all your controls that support the ValidationPropertyAttribute. How does it do this? Does it use the attribute somehow? What I'd like to do is show a list of all MenuItems, so if the concept requires the attribute then I could be onto a non-starter. But it would be a nifty feature for what I'm trying to do. Paul We all will feed the worms and trees
So don't be shy - Queens of the Stone Age, Mosquito Song -
Has anyone seen any articles on how to do this: For example, the ASP.NET Validator Controls allow you to select a ControlToValidate in the property table. It's stored as a string, but if you click the drop down button, you get a list of all your controls that support the ValidationPropertyAttribute. How does it do this? Does it use the attribute somehow? What I'd like to do is show a list of all MenuItems, so if the concept requires the attribute then I could be onto a non-starter. But it would be a nifty feature for what I'm trying to do. Paul We all will feed the worms and trees
So don't be shy - Queens of the Stone Age, Mosquito SongI think those are refered to as TypeDescriptors in design mode. Frankly, I wish I could figure out how to debug designer code could within VS.NET. HTH :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
-
I think those are refered to as TypeDescriptors in design mode. Frankly, I wish I could figure out how to debug designer code could within VS.NET. HTH :) I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
leppie wrote: I think those are refered to as TypeDescriptors in design mode leppie, Never found chance to thank you for this reply. Did it help me? Well, it gave me something new to learn about... and then I discovered that you could just define the property as type MenuItem and it gives you a DropDownList of MenuItems in the form automatically, so learning it was completely useless but cool anyway :) Paul We all will feed the worms and trees
So don't be shy - Queens of the Stone Age, Mosquito Song