代码里面设置了在outlookbar里面增加几个按钮,但是运行后没有按钮增加啊
代码如下:
void InitializeOutlookBar()
        {
//             //可以根据自己的要求添加 
            
            outlookBar1 = new OutlookBar();
            OutlookBarBand outlookMapsearchBand = new OutlookBarBand("客户管理");
            outlookMapsearchBand.SmallImageList = this.imageList;
            outlookMapsearchBand.LargeImageList = this.imageList;
            outlookMapsearchBand.Items.Add(new OutlookBarItem("订单管理",0));
            outlookMapsearchBand.Items.Add(new OutlookBarItem("客户管理",1));
            outlookMapsearchBand.Background = SystemColors.Window;
            outlookMapsearchBand.TextColor = Color.Red;
            outlookBar1.Bands.Add(outlookMapsearchBand);
            OutlookBarBand outlookMapcontrolBand = new OutlookBarBand("合同管理");
            outlookBar1.Bands.Add(outlookMapcontrolBand);
            outlookBar1.Dock = DockStyle.Fill;
            this.Controls.AddRange(new Control[] { outlookBar1 });代码没有报错