namespace OuWei.CommonControl
{
    public class AREA:Panel
    {
        protected override void OnLoad(EventArgs e)
        {
            //base.OnLoad(e);
            TextBox text = new TextBox();
            
            DropDownList dd=new DropDownList();
            DropDownList dd2 = new DropDownList();
            DropDownList dd3 = new DropDownList();            this.Controls.Add(dd);
            this.Controls.Add(dd2);
            this.Controls.Add(dd3);
            this.Controls.Add(text);
            dd.Items.Add("213213");
            dd2.Items.Add("213213");
            dd3.Items.Add("213213");
        }
        protected void dd_SelectedIndexChanged(object sender, EventArgs e)
        {
            MessageBox.ShowConfirm(this, "messs");
        }
    }
}
如上是一些代码!先是顶一个类继承了panel 然后往这个累了加了3个dropdownlist 现在想只知道这 3个dropdownlist的事件如何写!比如SelectedIndexChanged事件要怎么写!谢谢各位大虾帮忙!本人新手!