otherside Posted July 14, 2003 Posted July 14, 2003 hello guys, any ideas how you can set option to a property for example when you have a variable boolean dim bol as boolean now when you type bol= the IDE displays two options true / false or when you write dialogresult = then displays the options any idea how can you make these kind of options on a custom class ? Quote
*Gurus* divil Posted July 14, 2003 *Gurus* Posted July 14, 2003 You can either make your property an enumeration, or implement a typeconverter for the type that overrides GetStandardValuesSupported. There's more info on that in MSDN. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
otherside Posted July 14, 2003 Author Posted July 14, 2003 do you have any link, cause i've searching all morning and i can't find en example, or any example, thanks again Quote
*Gurus* divil Posted July 14, 2003 *Gurus* Posted July 14, 2003 [mshelp]ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconimplementingtypeconverter.htm[/mshelp] Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
otherside Posted July 14, 2003 Author Posted July 14, 2003 thanks again divil that's what i was looking for Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.