我用下面的代码试图将FormulaTextBox放入工具栏里,最后却得到一个下图虚线中的东西?怎么办?
- FormulaTextBox myFormulaBox = new FormulaTextBox();
- myFormulaBox.Attach(mainForm.frmProjectObj.fp1);
- ToolStripControlHost myToHost = new ToolStripControlHost(myFormulaBox);
- tspFormulaBox.Items.Add (myToHost );
复制代码 |
|