序言
阴差阳错的被调到另外一个winform
项目中去了,遇到了GridLookUpEdit
控件,不知道如何更改其大小。
问了同事也不知道如何搞,这是最尬的事情。
开始实战
- PopupSizeable
//
// 摘要:
// Gets or sets a value indicating whether the dropdown window is sizeable.
//
// 值:
// true, if the dropdown is sizeable; otherwise, false.
[DefaultValue(true)]
[Description("Gets or sets a value indicating whether the dropdown window is sizeable.")]
public override bool PopupSizeable { get; set; }
- PopupFormSize
//
// 摘要:
// Gets or sets the popup window's size.
//
// 值:
// A System.Drawing.Size structure that specifies the popup window's size.
[Category("Behavior")]
[Description("Gets or sets the popup window's size.")]
public virtual Size PopupFormSize { get; set; }
两个属性配合使用
效果
- 调整后了的大小
- 未调整的大小