2012-04-27 52 views
0

当我在选项卡控件中的工具栏上分配按钮时,应用程序就会等待并且不会响应。这里是我的代码:在选项卡控件下的工具栏上包含一个按钮

ToolStrip toolStrip_3 = new ToolStrip(); 
    toolStrip_3.setWidth100(); 
    toolStrip_3.setHeight("20px"); 
    toolStrip_3.setReverseOrder(true); 

    ToolStripButton button = new ToolStripButton(CONSTANTS.notesAddButton_title()); 
    toolStrip_3.addButton(button); 
    conflictLayout.addMember(toolStrip_3); 

当我注释掉这一行:

//conflictLayout.addMember(toolStrip_3); 

应用程序的工作没有任何问题。

+0

您可以张贴standlaone情况下,这样我也能产生的问题? – RAS 2012-04-30 06:44:17

回答

0

尝试使用:

toolStrip_3.setHeight(20); 

代替:

toolStrip_3.setHeight("20px"); 
相关问题