This can be done applying a UITypeEditor attribute, the FileNameEditor Class (System.Windows.Forms.Design) is the standard.
Usually this is a property defined simply as some Enum type, see for example Enum Class (System). The link below show also another way, where some defaults are provided for a String type property.Or sometimes, there'll be a property, but with that particular control, there are only a certain number of predefined items which would be listed in a dropdown list, inside the PropertyGrid.
Here is one that explains many things: Getting the Most Out of the .NET Framework PropertyGrid ControlHow can I do things like this? Can someone point me to a VB.Net tutorial or code sample which shows these kinds of things (I don't even know what to call them, in order to do a search)?
Search the web for specifics once you find keywords you don't understand or want to expand on.



LinkBack URL
About LinkBacks




Reply With Quote



Bookmarks