O
onno.willems
Hi,
A little part of my (.NET 2.0) WinForm GUI need to be configurable by
a user. The user can specify a variable number of items which should
appear on a form like this:
<Label> <Label> <ComboBox>
<Label> <Label> <ComboBox>
<Label> <Label> <TextBox>
<Label> <Label> <CheckBox>
etc
I want to store the (user changeable) definition for this in an
external XML file. My 1st thought was reading the XML file and filling
a DataGridView, but you can't seem to mix Edit/Text/Checkboxes in a
single grid because you set the type by column. Ow well, I think I can
generate the GUI dynamically placing the controls in a panel with
AutoScroll set to True.
But the user needs to be able to add a little dynamic behavior too.
For example, if combobox1 has value "SomeValue1" and CheckBox2 is
checked, TextBox1 should be disabled.
Any thoughts on how I can achieve this?
Thanks,
Onno
A little part of my (.NET 2.0) WinForm GUI need to be configurable by
a user. The user can specify a variable number of items which should
appear on a form like this:
<Label> <Label> <ComboBox>
<Label> <Label> <ComboBox>
<Label> <Label> <TextBox>
<Label> <Label> <CheckBox>
etc
I want to store the (user changeable) definition for this in an
external XML file. My 1st thought was reading the XML file and filling
a DataGridView, but you can't seem to mix Edit/Text/Checkboxes in a
single grid because you set the type by column. Ow well, I think I can
generate the GUI dynamically placing the controls in a panel with
AutoScroll set to True.
But the user needs to be able to add a little dynamic behavior too.
For example, if combobox1 has value "SomeValue1" and CheckBox2 is
checked, TextBox1 should be disabled.
Any thoughts on how I can achieve this?
Thanks,
Onno