Creates pair of controls, Label with Text = labelText and IComponent of type componentType Locates them in one raw in order (label, component) Except the case: componentType == typeof(CheckBox) in this case one CheckBox control created with the Text property set to labelText.
[Visual Basic] Public Function CreateLabeledControl( _ ByVal controlType As Type, _ ByVal labelText As String, _ ByVal controlName As String _ ) As Control [C#] public Control CreateLabeledControl( Type controlType, string labelText, string controlName ); [C++] public: Control* CreateLabeledControl( Type* controlType, String* labelText, String* controlName ); [JScript] public function CreateLabeledControl( controlType : Type, labelText : String, controlName : String ) : Control;
UICreationHelper Class | UICreationHelper Members | System.Data.Design Namespace