How do you detect the designer host getting loaded for the first time in your designer

Platform: WinForms| Category: Tips

Subscribe to IDesignerHost.LoadComplete event. Make any changes to the designerhost (like adding/deleting component, etc.) only after this event, or else the design document will not be made ‘dirty’.
(IdesignerSerializationManager.SerializationComplete will tell you when Code is deserialized into design time components).

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.