What are the requirments for ISupportInitialize code to be serialized in InitializeComponent? .Net
Posted
by Jules
on Stack Overflow
See other posts from Stack Overflow
or by Jules
Published on 2010-04-26T16:09:22Z
Indexed on
2010/04/26
16:43 UTC
Read the original article
Hit count: 232
I need to add some code to the EndInit method of a PictureBox control but unfortunately its private and, from what I can gather, I can't shadow it and call base - at least not in VB.Net.
What I can do is add a dummy property to my picture box class. The type of the dummy property is simply a class that just implements ISupportInitialize. However, that doesn't work, I need the dummy class to inherit from Control.
Is that the minimum requirement?
© Stack Overflow or respective owner