John,
First instantiate an instance of your class, and simply set the combo's data source to it:
TaskType oTask = new TaskType();
this.MyCombo.DataSource = oTask.Types;
~~Bonnie
>Hi,
>I'm pretty new to the concept of n-tier development (and C#) and trying to get my head round the subject.
>
>I've created a simple class with
>
>public class TaskType
> {
> private ArrayList _Types = new ArrayList();
>
> public TaskType()
> {
> _Types.Add("Support");
> _Types.Add("Admin");
> }
>
> public ArrayList Types
> {
> get { return _Types; }
> set { _Types.Add(value); }
> }
> }
>
>I'd like to get the items of the arraylist TYPES to display in a combobox, and allow new items to be added to the list.
>
>It's not like good old fox, linking to a view)
>Could anyone point me to a good article or website that may assist me in, or provide the required details to bind the TaskType.Types to my combo.
>Many thanks