S
Scott Kilbourn
Hi,
I added some custom code to the InitalizeComponent function of a control
that I'm working on. Every once in a while, I've noticed that the code that
I added disappears. I finally tracked it down, and it seems that the code
disappears whenever I make a change to the UI of the control. For instance,
I just resized the control in the IDE, and my code disappeared.
Is this normal behavior? Is there a better place for this code? The code
that I inserted into InitializeComponent has to run before the OnSizeChanged
event runs.
Thanks
I added some custom code to the InitalizeComponent function of a control
that I'm working on. Every once in a while, I've noticed that the code that
I added disappears. I finally tracked it down, and it seems that the code
disappears whenever I make a change to the UI of the control. For instance,
I just resized the control in the IDE, and my code disappeared.
Is this normal behavior? Is there a better place for this code? The code
that I inserted into InitializeComponent has to run before the OnSizeChanged
event runs.
Thanks