.NET Windows Forms in a Nutshell

IWindowsFormsEditorService

System. Windows .Forms.Design (system. windows .forms.dll) interface

This service can be obtained from the local IServiceProvider . Typically, this will be the instance supplied to the EditValue() method.

DropDownControl() will show a System.Windows.Forms.Control as a drop-down, and CloseDropDown() will clear any control currently showing. Alternatively, you can show a System.Windows.Forms.Form using ShowDialog() .

public interface IWindowsFormsEditorService { // Public Instance Methods public void CloseDropDown (); public void DropDownControl (System.Windows.Forms.Control control ); public DialogResult ShowDialog ( System.Windows.Forms.Form dialog ); }

Категории