Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Object of type 'Aurigma.GraphicsMill.Bitmap' cannot be converted...
Rank: Member
Groups: Member
Joined: 7/6/2005(UTC) Posts: 16
|
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)
Edited by user Thursday, December 20, 2007 5:08:39 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/6/2005(UTC) Posts: 16
|
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. Edited by user Thursday, December 20, 2007 5:09:21 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
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. Edited by user Thursday, December 20, 2007 5:10:10 PM(UTC)
| Reason: Not specified |
|
|
|
|
Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Object of type 'Aurigma.GraphicsMill.Bitmap' cannot be converted...
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.