Welcome Guest Search | Active Topics | Members

Object of type 'Aurigma.GraphicsMill.Bitmap' cannot be converted... Options
Jdelagarza
Posted: Friday, February 17, 2006 3:49:18 PM
Rank: Member
Groups: Member

Joined: 7/6/2005
Posts: 16
Points: 0
I get this error ALL the time.. in the past I've just deleted the line in the designer file that tried to set this property, as I don't need my BitmapViewer control to be pre-populated in order to work.. but now all of a sudden its preventing the designer from loading with the following IDE error (in Visual Studio 2005, VB.NET)

Code:
One or more errors encountered while loading the designer. The errors are listed below. Some
errors can be fixed by rebuilding your project, while others may require code changes.


Object of type 'Aurigma.GraphicsMill.Bitmap' cannot be converted to type 'Aurigma.GraphicsMill.Bitmap'.


at System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

Jdelagarza
Posted: Friday, February 17, 2006 4:08:09 PM
Rank: Member
Groups: Member

Joined: 7/6/2005
Posts: 16
Points: 0
Here is the line in the designer that causes the fault:
Code:
Me.ImageViewer1.ResultImage = CType(resources.GetObject("ImageViewer1.ResultImage"), Aurigma.GraphicsMill.Bitmap)

I didn't add that, the designer did automatically.

Also, I checked the resource item for that entry "ImageViewer1.ResultImage" and decoded it (what was in the resource file) and then converted it to a string and replaced the nulls with .'s:

Code:
....????....... ...YAurigma.GraphicsMill, Version=3.5.135.0, Culture=neutral, PublicKeyToken=f4bbbf243f314012...Aurigma.GraphicsMill.Bitmap...Data...    ......H...    AU_BMPSER.,.........................R@......R@.............
...........



Version 3.5.135.0 is what I have referenced in the project.
Dmitry
Posted: Friday, February 17, 2006 8:45:14 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 587
Points: 591
Hello,

If you want to create controls which is not pre-populated, you should not use IDE designer. You should create and initialize such objects by-hand dynamically.

Code:
Me.ImageViewer1.ResultImage = CType(resources.GetObject("ImageViewer1.ResultImage"), Aurigma.GraphicsMill.Bitmap)

I don't understand which control you use. We don't have a control with property ResultImage.

Sincerely yours,
Dmitry Sevostyanov.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.