string date= monthCalendar1.SelectionStart.ToString("yyyy-MM-dd");
string nei = richTextBox1.Text;
我想在public中定义date和nei,不需要在每个butten中再定义;
monthCalendar1是个时间控件,怎么实现,求解。
get
{
return monthCalendar1.SelectionStart.ToString("yyyy-MM-dd");
}
下面butten控件中不起作用