请问关于日历控件的问题,请大家帮忙
我要实现的是通过两个下拉列表框的选择(一个是年,一个是月),来显示不同的日历控件的页面 问题点数:0、回复次数:1Top
1 楼daiqunbiao(笑傲IT)回复于 2004-02-13 14:21:06 得分 0
你可自己做一个用户控件,加入calendar 控件,一个下拉列表框选取年,一个下拉选月,
在下拉列表框的selectchanged事件中
string year=this.DropDownYear.SelectedItem.Text;
int m=this.DropDownMonth.SelectedIndex;
int y=int.Parse(year);
this.Calendar1.VisibleDate=new DateTime (y,m,1);Top




