Calendar物件雖然很方便,但是發現一個問題就是如果要查幾年前的資料
光是點 << 或是 >> 就會點到快抓狂
所以跟DropDownList可以結合起來使用

事件:DropDownList_SelectedIndexChanged
語法:Calendar.VisibleDate = new DateTime(int.Parse(DropDownList.SelectedItem.Value), 月, 日);
arrow
arrow
    全站熱搜

    貓小佑 發表在 痞客邦 留言(1) 人氣()