Custom Control : One custom property to array of controls

Custom Control : One custom property to array of controls

Post by anon » Sun, 16 Jan 2005 20:32:21


Within the designer I would like my custom control to be able to reference
any number (1-n) of page panels. I know how to get a dropdown list of panels
on the page and assign its name to a single property within the control but
what if I want the developer to be able to choose more than one?

What sort of thing do I need? Any tips?

thanks,D
 
 
 

1. COMPILE ERROR when using custom controls w/ custom properties w/ custom TypeConverters

2. Custom Control inheriting from a Custom Control

Hi,

My problem is that a custom control "newA" that inherits from a base
custom control "baseA" is not displaying any contained controls - that
were not inherited - at run time, but displays them fine at design
time.

I'll give a short example:

public class baseA: UserControl
{
//add datagrid in designer and set some properties.
}

public class newA: baseA
{
//add a second grid and some buttons next to the existing datagrid in
the deisgner.
//programatically load second grid with data depending on records
selected on the first grid
}

public class main
{
//I put the newA control on my form programatically
}

What happens:
Altough newA looks fine in the designer when the program is run only
the grid from baseA shows up. I found that the controls are actually
present and working after setting a breakpoint; they are simply not
visible (the visible property is true of course).

Additional information:
My base class is not abstract because then the designer doens't work
anymore (makes sense, just not handy). The inherited controls
contained within the base are perfectly usable when designing newA.
The grid from the base is fully functional.

I have found people having similair problem but no solutions.

All help is appreciated.

grtz,
Cyr

3. Custom Properties and Custom Controls - design time changes reflected visually.

4. Blend and custom controls derived from custom base control class.

5. setting properties on child controls of Custom web user controls

6. Why the properties of web user controls which inherted from my custom base UI controls MISSED?

7. How to have a control stored in a property for a custom web control?

8. feeding a SQLDataSource embedded in an .ascx user control a custom property assigned to that control

9. Exposing contained control properties from within a custom control

10. How do you access a control property of a main form from a custom user control?

11. Control designer for custom user control property

12. Custom control with complex property type (System.Web.UI.Control[])

13. Why the properties of web user controls which inherted from my custom base UI controls MISSED?

14. Accessing Properties of Custom Controls child Controls

15. Why the properties of web user controls which inherted from my custom base UI controls missed?