0

When I assign the button on toolstrip in a tab control, the application just stands by and will not respond. Here is my code:

    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);

When I comment out this line:

//conflictLayout.addMember(toolStrip_3);

the application works without problems.

Rachel Gallen
  • 27,943
  • 21
  • 72
  • 81

1 Answers1

0

Try using :

toolStrip_3.setHeight(20);

instead of :

toolStrip_3.setHeight("20px");
Jean-Michel Garcia
  • 2,359
  • 2
  • 23
  • 44