Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
System.Windows.Forms.PictureBox in UltraPictureBox, ISupportInitialize
posted

Hello,

I changed System.Windows.Forms.PictureBox to UltraPictureBox geöndert

private UltraPictureBox _picBox;

this._picBox = new UltraPictureBox();
((System.ComponentModel.ISupportInitialize)(this._picBox)).BeginInit();

Please, how can I fix this? Does Infragistics have a similar interface?

Thank you in advance

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Brigitte, 

    ISupportInitialize is an interface that is used by the Visual Studio form designer in order to allow a control to handle any neccessary processing before and after the control is Initialized. 

    The UltraPictureBox does not support this interface because it doesn't need it. 

    So you can simply delete the code that is trying to cast the UltraPictureBox to this interface. There will be two lines like this in the designer file. 

    ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
    ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();

Children