protected override void OnLoad(EventArgs e) { base.OnLoad(e); try { mFilter = new TSPopupWindowMessageFilter(this, mOwnerControl); Application.AddMessageFilter(mFilter); // Win7 下与 XP\2003 等,Calendar 的大小不一 this.ClientSize = tsCalendar.Size; } catch (Exception ex) { CommonFuntion.OnDealError(this, ex); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); try { mFilter = new TSPopupWindowMessageFilter(this, mOwnerControl); Application.AddMessageFilter(mFilter); if (!this.ManageButtonVisible) { this.Height = 200; } } catch (Exception ex) { CommonFuntion.OnDealError(this, ex); } }