示例#1
0
        private void roundedButton1_MouseLeave(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            RoundedButton rb = sender as RoundedButton;

            if (this.contextMenuStrip1.Items != null && this.contextMenuStrip1.Items.Count > 0)
            {
                contextMenuStrip1.Opacity = 0;
                this.contextMenuStrip1.Items.Clear();
                this.contextMenuStrip1.Visible = false;
                //this.contextMenuStrip1.Dispose();
                //this.contextMenuStrip1.Items.Add(rb.Tag.ToString());
                //contextMenuStrip1.Show(sender as Control, 10, 10);
            }
        }