Enums & VS.NET Properties Panel - How allow enum to be edited?
by Spam Catcher on 11/1/2007 7:09:00 PM
Hi all,
I have a usercontrol with a settable enum. How do I allow the user to edit
the enum through VS.NET's property panel?
The enum shows up, but it's not currently editable.
Thanks.
Re: Enums & VS.NET Properties Panel - How allow enum to be edited?
by Tom Shelton on 11/1/2007 3:39:00 PM
On Nov 1, 1:08 pm, Spam Catcher <spamhoney...@rogers.com> wrote:
> Hi all,
>
> I have a usercontrol with a settable enum. How do I allow the user to edit
> the enum through VS.NET's property panel?
>
> The enum shows up, but it's not currently editable.
>
> Thanks.
hmmm... The property is not readonly? Because, if I do that, I get a
drop down with the enum values populated. I don't have to do anything
at all.
--
Tom Shelton
Re: Enums & VS.NET Properties Panel - How allow enum to be edited?
by Spam Catcher on 11/2/2007 7:13:00 AM
Tom Shelton <tom_shelton@comcast.net> wrote in
news:1193981965.265890.183750@d55g2000hsg.googlegroups.com:
> On Nov 1, 1:08 pm, Spam Catcher <spamhoney...@rogers.com> wrote:
>> Hi all,
>>
>> I have a usercontrol with a settable enum. How do I allow the user to
>> edit the enum through VS.NET's property panel?
>>
>> The enum shows up, but it's not currently editable.
>>
>> Thanks.
>
> hmmm... The property is not readonly? Because, if I do that, I get a
> drop down with the enum values populated. I don't have to do anything
> at all.
You're right!
I didn't notice I had set the SET to PRIVATE :-)