1.
string sDate = "2004/04/20";
DateTime dYouDate = Convert.ToDateTime(sDate);
2.
Form frmTest = null;
private void btnShowChildWindow_Click(object sender, System.EventArgs e)
{
if(frmTest==null)
{
frmTest = new frmOtherTest();
frmTest.Show();
frmTest.Closing+=new CancelEventHandler(frmTest_Closing);
}
}
private void frmTest_Closing(object sender, CancelEventArgs e)
{
frmTest=null;
}
string sDate = "2004/04/20";
DateTime dYouDate = Convert.ToDateTime(sDate);
2.
Form frmTest = null;
private void btnShowChildWindow_Click(object sender, System.EventArgs e)
{
if(frmTest==null)
{
frmTest = new frmOtherTest();
frmTest.Show();
frmTest.Closing+=new CancelEventHandler(frmTest_Closing);
}
}
private void frmTest_Closing(object sender, CancelEventArgs e)
{
frmTest=null;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货