Use an enumeration. Let's say that you have an enum:
public enum myEnum: uint{
blah,
moreblah,
evenmoreblah;
}
private myEnum _myenum;
public myEnum{
get{return _myenum;}
set{_myenum = value;}
}
If you have your class defined w/ component model, it will show up in the
designer. Remember to set your attributes for Description and group so they
show up in the ControlGird and have definitions associated with them. Not
mandatory, but users will hate you if you don't.
HTH,
Bill
"Champika Nirosh" <cn*****@textcentric.lk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi All,
I want to add a property to a user control with three or four option to
select how can I do it. I mean what type it should be to have a combo box
type get a combo box selection option.
If you take boolean type property it allow the user to select true/ false
as the control get added.
How I do some thing similar (for some other set of selections).
Nirosh.