Commit f99c2528 kwwwvagaa

解决日期控件显示问题

1 个父辈 3ee74288
...@@ -159,6 +159,12 @@ namespace HZH_Controls.Controls ...@@ -159,6 +159,12 @@ namespace HZH_Controls.Controls
public UCDatePickerExt() public UCDatePickerExt()
{ {
InitializeComponent(); InitializeComponent();
this.SizeChanged += UCDatePickerExt_SizeChanged;
}
void UCDatePickerExt_SizeChanged(object sender, EventArgs e)
{
var a = this.Height;
} }
/// <summary> /// <summary>
...@@ -170,7 +176,8 @@ namespace HZH_Controls.Controls ...@@ -170,7 +176,8 @@ namespace HZH_Controls.Controls
{ {
SetTimeToControl(); SetTimeToControl();
panel1.Height = this.txtDay.Height; panel1.Height = this.txtDay.Height;
panel1.Height = this.txtHour.Height;
panel1.Width = this.Width - 6;
SetEvent(this); SetEvent(this);
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!