M
Martin Schulze
Hello,
i tried to compose myself a custom usercontrol which is derieved from
System.Windows.Forms.UserControl.
It contains 2 comboboxes and one textbox (which are also custom
controls,
but directly derived from the .net classes ComboBox and TextBox)
I did the custom control in the visual studio .net designer in which i
aligned the
controls inside properly, set the anchors and the other layout things.
As i compiled it and dropped in onto a new form i cannot select any of
the components (i.e. the comboboxes) inside the control.
I wanted to use the control in such a way that i can select the
subcontrols inside the control and adjust the settings for each one
individually in the propertygrid.
How can i do this?
I tried to overwrite the Control.Controls Method but that did not
work.
And i read its not that easy because one overwrites the serializer and
that must be handled properly.
(i know that has something to do with design-time support, but i dont
understand it properly)
but with the control-subcontrol property i should not go into deph
with design time programming.
or am i wrong?
could anyone tell me what to do to make the subcontrols available in
the designer (i.e. which methods to overwrite ?)
and where can i find resources or books about design time programming
besides the msdn-documentation?
thanks
Martin
i tried to compose myself a custom usercontrol which is derieved from
System.Windows.Forms.UserControl.
It contains 2 comboboxes and one textbox (which are also custom
controls,
but directly derived from the .net classes ComboBox and TextBox)
I did the custom control in the visual studio .net designer in which i
aligned the
controls inside properly, set the anchors and the other layout things.
As i compiled it and dropped in onto a new form i cannot select any of
the components (i.e. the comboboxes) inside the control.
I wanted to use the control in such a way that i can select the
subcontrols inside the control and adjust the settings for each one
individually in the propertygrid.
How can i do this?
I tried to overwrite the Control.Controls Method but that did not
work.
And i read its not that easy because one overwrites the serializer and
that must be handled properly.
(i know that has something to do with design-time support, but i dont
understand it properly)
but with the control-subcontrol property i should not go into deph
with design time programming.
or am i wrong?
could anyone tell me what to do to make the subcontrols available in
the designer (i.e. which methods to overwrite ?)
and where can i find resources or books about design time programming
besides the msdn-documentation?
thanks
Martin