Dim bmp1 AsNew Bitmap(strm1) Dim strm2 As System.IO.Stream =Me.GetType.Assembly.GetManifestResourceStream("PROP.CONSTRUC.bmp") ChkList1.set_ItemImage(ChkList1.NewIndex, VB6.ImageToPicture(bmp1))
Unable to cast COM object of type 'System.Drawing.Image' to class type ''. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.
Dim bmp1 AsNew Bitmap(strm1) Dim strm2 As System.IO.Stream =Me.GetType.Assembly.GetManifestResourceStream("PROP.CONSTRUC.bmp") ChkList1.set_ItemImage(ChkList1.NewIndex, bmp1)