コード例 #1
0
 private void DictionaryView_MouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         Point    pt   = DictionaryView.PointToClient(Cursor.Position);
         TreeNode Node = DictionaryView.GetNodeAt(pt);
         DictionaryView.SelectedNode = Node;
         contextMenuStrip1.Show(DictionaryView, pt);
     }
 }