Usercontrol doing Ctype in designer

Incognito_gbg

New member
Joined
Apr 17, 2008
Messages
1
Programming Experience
1-3
I have coded a usercontrol that derives from PictureBox, and when using it in the designer, it does a Ctype.BeginInit() in the designer-file that causes the application to crash.

CType(Me.UserControl1, System.ComponentModel.ISupportInitialize).BeginInit()
....
....
CType(Me.UserControl1, System.ComponentModel.ISupportInitialize).EndInit()


Since the orginal picturebox doesnt do such a Ctype-init, is there anyway to avoid this with my usercontrol?
 
Back
Top