/// <summary> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void treeView_Click(object sender, EventArgs e) { var p = DatatreeView.PointToClient(MousePosition); var mTreeNode = DatatreeView.GetNodeAt(p); if (mTreeNode != null) { DatatreeView.SelectedNode = mTreeNode; } }
/// <summary> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void listView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e) { DatatreeView.Focus(); DatatreeView.Invalidate(); }
/// <summary> /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void listView_ColumnClick(object sender, ColumnClickEventArgs e) { DatatreeView.Focus(); }