Remove static modifier from the dock panel in main form.