C#.net中ToolStripDropDown和ToolStripControlHost是什么东东?能不能详细介绍下?谢谢!

解决方案 »

  1.   

    C#.net中ToolStripDropDown和ToolStripControlHost是什么东东?能不能详细介绍下?
      

  2.   

                ToolStripControlHost treeViewHost;
                ToolStripDropDown dropDown = new ToolStripDropDown();
                CheckedListBox checkList = new CheckedListBox();
      checkList.BorderStyle = BorderStyle.None;
                treeViewHost = new ToolStripControlHost(checkList);
                treeViewHost.Size = new System.Drawing.Size(500, 500);
                dropDown.Items.Add(treeViewHost);
                dropDown.Show(this, locationX, locationY);
    可以在想要的地方做一个下拉框