Hello..
Sorry for can't be experience English..
anyway I make a UserControl , named by TLabelCombo.
and TLabelCombo have a Property.. like under code..
--------------------------------------------------
Class TLabelCombo : UserControl
{
public Control NextControl{get;set;}
}
--------------------------------------------------
and I added TLabelCombo to a Form, Visual Studio(2010, .net4)'s Designer Mode..
and I Watch NextControl, TLabelCombo's Property with VisualStudio Property Browser
I Can choice NextControl's Value, among Controls in Form.
but I have to Make the NextControl on List.. like under code..
--------------------------------------------------
Class TLabelCombo : UserControl
{
public List<Control> NextControls{get;set;}
}
--------------------------------------------------
TLabelCombo be built and once more I watch the Property Browser .
the NextControls Property in Property Browser changes from a ComboBox to a Container Editor.
I Click the Container Editor.. that's provide for add multi control to NextControls.
but at this time ,a problem comes up.. Nowhere I can't find Form's child Control..
just able to add new Controls and add new Controls..
I want Add Controls in TLabelCombo's Parent Form to NextControls with Property Browser...
thanks for read it.
Sorry for can't be experience English..
anyway I make a UserControl , named by TLabelCombo.
and TLabelCombo have a Property.. like under code..
--------------------------------------------------
Class TLabelCombo : UserControl
{
public Control NextControl{get;set;}
}
--------------------------------------------------
and I added TLabelCombo to a Form, Visual Studio(2010, .net4)'s Designer Mode..
and I Watch NextControl, TLabelCombo's Property with VisualStudio Property Browser
I Can choice NextControl's Value, among Controls in Form.
but I have to Make the NextControl on List.. like under code..
--------------------------------------------------
Class TLabelCombo : UserControl
{
public List<Control> NextControls{get;set;}
}
--------------------------------------------------
TLabelCombo be built and once more I watch the Property Browser .
the NextControls Property in Property Browser changes from a ComboBox to a Container Editor.
I Click the Container Editor.. that's provide for add multi control to NextControls.
but at this time ,a problem comes up.. Nowhere I can't find Form's child Control..
just able to add new Controls and add new Controls..
I want Add Controls in TLabelCombo's Parent Form to NextControls with Property Browser...
thanks for read it.
Last edited: