Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 27th, 2006, 09:04 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 440
Thanks: 0
Thanked 0 Times in 0 Posts
Default Making a custom ImageKey property?

On the Button class there is a ImageKey property, which is simply a string, i.e. a key in the ImageList, which is also in the Button class. I understand this much, but if I am doing my own implementation of some property which is called MyCustomImageKey of type string, I am not presented (in VS .NET 2005 design property grid) with the options of the ImageList keys, as one do if it is the Button implementation of the ImageKey.

How do I enable this feature? That is, ensuring that the possible values for some string property in the property grid are limited to e.g. the keys from an ImageList?

I am quite sure that it has something to do with attributes but how? I need some clues to searches and resources where I can get information about this.

Thanks, Jacob.
__________________
Danish audio books for download at http://www.lytenbog.dk (Danske lydbøger til download).





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Server Control....Custom Property Editor ZArrinPour ASP.NET 1.0 and 1.1 Basics 1 June 15th, 2010 11:30 AM
Property in Custom control watashi Visual C++ 0 October 22nd, 2008 11:20 PM
Setting Property for a Custom Control cadaats C# 0 October 17th, 2005 02:22 AM
error making custom pipeline Newinbiz Biztalk 1 December 7th, 2004 07:08 AM
Create an About property for custom control mouratx General .NET 1 March 27th, 2004 11:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.