public void setCurrentState(string state)
 {
     StatusBox.BeginInvoke(tb => { tb.Text = state; });
 }