Hi All,
Situation:
I have a user control which i am adding to an expander. I have a constructor which takes some params. I also have a default constructor which just calls InitializeComponent. I call the constructor with the params to setup the user control. The user control is then added to the expander. The expander is not expanded at this point. When i go to expand the expander the default constructor is called and i lose all the settings previously passed into it.
Next i removed the constructor with the params and setup the user control via public properties, but still the default constructor is called wiping all the settings when the expender is expanded.
Can anyone tell me why, and how to get round this?
Thanks Jason