IWindowsFormsEditorService.DropDownControl(Control) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Displays the specified control in a drop down area below a value field of the property grid that provides this service.
public:
void DropDownControl(System::Windows::Forms::Control ^ control);
public void DropDownControl (System.Windows.Forms.Control control);
public void DropDownControl (System.Windows.Forms.Control? control);
abstract member DropDownControl : System.Windows.Forms.Control -> unit
Public Sub DropDownControl (control As Control)
Parameters
Remarks
The EditValue method of a UITypeEditor can call this method to display a specified control in a drop down area over the property grid hosting the editor which uses this service.
When possible, the dimensions of the control will be maintained. If this is not possible due to the screen layout, the control may be resized. To ensure that the control resizes neatly, you should implement docking and anchoring, and possibly any resize event-handler update code. If the user performs an action that causes the drop down to close, the control will be hidden and disposed by garbage collection if there is no other stored reference to the control.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기