日期:2014-05-17 浏览次数:20832 次
MonthCalendar monthCalendar = new MonthCalendar();//放到外面不就可以删除了吗
private void calendar_toolStripButton_Click(object sender, EventArgs e)
{
//MonthCalendar monthCalendar = new MonthCalendar();
Point m_location = new Point(toolStrip1.Location.X + 50, toolStrip1.Location.Y + 50);
monthCalendar.Location = m_location;
if (monthCalendar_live == 0)
{
Controls.Add(monthCalendar);
monthCalendar.BringToFront();
monthCalendar_live = 1;
}
else
{
Controls.Remove(monthCalendar);
monthCalendar_live = 0;
}
}