Designtime help

otherside

Centurion
Joined
Mar 16, 2003
Messages
127
Location
UK - Greece
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 ?
 
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.
 
[mshelp]ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconimplementingtypeconverter.htm[/mshelp]
 
Back
Top