Windows Develop Bookmark and Share   
 index > Windows Forms Designer > ContainerControl inside another ContainerControl
 

ContainerControl inside another ContainerControl


<.NETFramework>

I am facing problems using a ContainerControl inside another ContainerControl. The child ContainerControl is not getting on the design surface probably. I'm not being able to drop any control (e.g a Button) on the inner ContainerControl. It is dropping the control (Button) on the outer ContainerControl instead. I know there is something like EnableDesignMode in Framewrok 2.0. But I cannot find it in Framewrok 1.1.

I would also like to share that I'm working on a TableControl that will be just like an HTML Table Control. I also know that Microsoft has provided a TableLayoutPanel with Framework 2.0. But due to some requirements I cannot go for it. Currently I'm trying to design something like this:

<Table type="ContainerControl">
<Row type="ContainerControl">
<Cell type="ContainerControl" />
<Cell type="ContainerControl" />
</Row>
<Row type="ContainerControl">
<Cell type="ContainerControl" />
<Cell type="ContainerControl" />
</Row>
</Table>

Its a simple XML representation of what I'm trying to do. Now the controls that the user will drop on my control in design mode, should be added to Controls property of a Cell. Also I should be able to access a user dropped control like this:

Ctype(Ctype(Table.Controls(i), Row).Controls(j), Cell).Controls(k)

Any help in this regard will be highly appreciated...

</.NETFramework>

sohaibi  Friday, June 23, 2006 2:43 PM
I am still waiting for any reply that might help me in implementing my design...
sohaibi  Saturday, June 24, 2006 6:31 AM

You can use google to search for other answers

Custom Search

More Threads

• Combining already programmed projects to one big'n
• Adding Combobox To DataGridColumnStyle
• Extender Control
• UITypeEditor cannot find dependency dlls that are not in system32
• Windows Forms Layout using XML file
• Get the title of a child form of another application
• possible? one toolbox item for a cluster of controls?
• Free controls for Windows Form
• Visual Studio 2008 Design view crashing environment
• datagridview help