private void TBMove_Click(object sender, EventArgs e) { if (hWndCtrl.GetViewState() == HWndCtrl.MODE_VIEW_MOVE) { hWndCtrl.setViewState(HWndCtrl.MODE_VIEW_NONE); } else { hWndCtrl.setViewState(HWndCtrl.MODE_VIEW_MOVE); } }