Click here to Skip to main content
16,020,840 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk29-Jun-09 0:57
honey.rpk29-Jun-09 0:57 
GeneralRe: How to make a control as a child to user control but not for a form? [modified] Pin
BillWoodruff29-Jun-09 2:30
professionalBillWoodruff29-Jun-09 2:30 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
dan!sh 29-Jun-09 2:47
professional dan!sh 29-Jun-09 2:47 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
BillWoodruff29-Jun-09 3:38
professionalBillWoodruff29-Jun-09 3:38 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
dan!sh 29-Jun-09 6:51
professional dan!sh 29-Jun-09 6:51 
AnswerRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute29-Jun-09 6:23
Henry Minute29-Jun-09 6:23 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk29-Jun-09 19:01
honey.rpk29-Jun-09 19:01 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute29-Jun-09 23:29
Henry Minute29-Jun-09 23:29 
To use ParentControlDesigner you will need to add two references to your project.

1) System.Windows.Forms.Design
The IDE might even suggest and add that one for you, if you click somewhere in the middle of ParentControlDesigner, you will see a small rectangle under the final 'r' move the mouse over that and select it from the options offered.

2) System.Design
You will have to add this yourself from the Solution Explorer window. There are a lot of these type of classes that use System.Design, and the only way I know to determine if it is needed is to examine the MSDN documentation.

From my Local MSDN installation
ParentControlDesigner Class  
Members  Example  See Also  Send Feedback 

Extends the design mode behavior of a Control that supports nested controls.

Namespace:  System.Windows.Forms.Design
Assembly:  System.Design (in System.Design.dll)


From MSDN on t'web
ParentControlDesigner Class

Base designer class for extending the design mode behavior of a Control that supports nested controls.

For a list of all members of this type, see ParentControlDesigner Members.

System.Object
   System.ComponentModel.Design.ComponentDesigner
      System.Windows.Forms.Design.ControlDesigner
         System.Windows.Forms.Design.ParentControlDesigner
            System.Windows.Forms.Design.ScrollableControlDesigner

[Visual Basic]
Public Class ParentControlDesigner
   Inherits ControlDesigner
[C#]
public class ParentControlDesigner : ControlDesigner
[C++]
public __gc class ParentControlDesigner : public ControlDesigner
[JScript]
public class ParentControlDesigner extends ControlDesigner

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks

ParentControlDesigner provides a base class for designers of controls that can contain child controls. In addition to the methods and functionality inherited from the ControlDesigner and ComponentDesigner classes, ParentControlDesigner enables child controls to be added to, removed from, selected within, and arranged within the control whose behavior it extends at design time.

You can associate a designer with a type using a DesignerAttribute. For an overview of customizing design time behavior, see Enhancing Design-Time Support.
Requirements

Namespace: System.Windows.Forms.Design


Note that the clue is in different places depending on how you are viewing the page.

Hope this helps.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk29-Jun-09 23:57
honey.rpk29-Jun-09 23:57 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 0:34
Henry Minute30-Jun-09 0:34 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk30-Jun-09 0:58
honey.rpk30-Jun-09 0:58 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 1:08
Henry Minute30-Jun-09 1:08 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 1:22
Henry Minute30-Jun-09 1:22 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk30-Jun-09 2:30
honey.rpk30-Jun-09 2:30 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 5:51
Henry Minute30-Jun-09 5:51 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
ice.cool 172930-Jun-09 20:23
ice.cool 172930-Jun-09 20:23 
GeneralRe: How to make a control as a child to user control but not for a form? [modified] Pin
Henry Minute30-Jun-09 6:26
Henry Minute30-Jun-09 6:26 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
dan!sh 30-Jun-09 6:39
professional dan!sh 30-Jun-09 6:39 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 8:20
Henry Minute30-Jun-09 8:20 
Generalattn. Henry : small suggestion : Re: How to make a control as a child to user control but not for a form? [modified] Pin
BillWoodruff30-Jun-09 19:11
professionalBillWoodruff30-Jun-09 19:11 
GeneralRe: attn. Henry : small suggestion : Re: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 22:57
Henry Minute30-Jun-09 22:57 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
BillWoodruff30-Jun-09 9:07
professionalBillWoodruff30-Jun-09 9:07 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk30-Jun-09 18:55
honey.rpk30-Jun-09 18:55 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
honey.rpk30-Jun-09 19:46
honey.rpk30-Jun-09 19:46 
GeneralRe: How to make a control as a child to user control but not for a form? Pin
Henry Minute30-Jun-09 22:48
Henry Minute30-Jun-09 22:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.