コード例 #1
0
        private void List_Task_MouseUp(object sender, MouseEventArgs e)
        {
            int posindex = List_Task.IndexFromPoint(new Point(e.X, e.Y));

            List_Task.ContextMenuStrip = null;
            if (posindex >= 0 && posindex < List_Task.Items.Count)
            {
                List_Task.SelectedIndex = posindex;
            }

            if (e.Button == MouseButtons.Right)
            {
                CMS_ListTask.Show(List_Task, new Point(e.X, e.Y));
            }

            List_Task.Refresh();
        }
コード例 #2
0
 private void TSMI_Cancel_Click(object sender, EventArgs e)
 {
     CMS_ListTask.Hide();
 }