How to use ISupportInitialize

  • Thread starter Thread starter Andrew
  • Start date Start date
A

Andrew

I am implementing ISupportInitialize on my component as follows:

public class BOCConnector : Component, IListSource, ISupportInitialize

But BeginInit and EndInit are not being called.

When the IDE is opening the form in design mode with this component already
on it I need the component to have a valid Site property which it does not
seem to have at this point.

I thought if I could find out when it has been initialized I would get a
valid Site.

Any ideas?
 
Ok, I worked out why BeginInit was not being called. I had not removed and
re-added the component to the form so the code was not written in
InitializeComponent to call it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top