日期:2014-05-17 浏览次数:21106 次
public partial class ComboBoxEx : ComboBox
{
private ToolStripDropDown DateTool = new ToolStripDropDown();
private MonthCalendar M = new MonthCalendar();
private ToolStripControlHost ToolHost;
public ComboBoxEx()
{
this.DrawMode = DrawMode.OwnerDrawVariable;
M.DateSelected += new DateRangeEventHandler(M_SelectDay);
M.MaxSelectionCount = 1;
M.ShowTodayCircle = false;
InitTool();
}
public new int ItemHeight
{
get
{
return base.ItemHeight ;
}
set
{
base.ItemHeight = value;
this.Size = new Size(this.Size.Width, this.ItemHeight + 6);