I`m developing a control with design-time support and want to persist a control`s state (I receive it asynchronously) until it loaded in the VS. So I through I can just save it in the control`s static member and that`s all but the problem is that VS unloads my control with the appdomain where it loaded every time it compiles solution where my control is using.

My question is: how to store a data (couple of hundreds bytes) while my control loaded by VS designer and destroy it when VS is closing?

My thoughts right now to do that through:
- isolated storage
- separated appdomain (not sure. will it be unloaded on compile too?)

Thanks.
  • Moved bynobugzMVP, ModeratorMonday, May 11, 2009 12:56 PMnot a bcl q (From:.NET Base Class Library)
  •