Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
i'm using vb.net 2010 i use custom lib for button shape..every thing was going fine till i decided to change my app framenetwork from 3.5 to 4. then buttons that i have created are not showing any more in the form desgin and i get these errors and it dosn't even get fix when i change the framenetwork back to 3.5
 
Object of type 'System.Int32' cannot be converted to type 'System.Int16'.
The variable 'Recording' is either undeclared or was never assigned. [code]Me.TabPage6.Controls.Add(Me.Recording)[/code]

 
this is the call stack
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement) 
 
i also get this error
Duplicate declaration of member 'Recording'
and this is the call stack
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager manager, CodeStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statements) 
now i have the code for that button and i also can see it in project properties but i can't see it on the form desgin. i include screenshot as well. how to fix this?
 
http://s9.postimage.org/lxj5kc8en/image.jpg[^]
http://s11.postimage.org/ijj47k6lv/image.jpg[^]
http://s9.postimage.org/ryq18w9sf/image.jpg[^]
http://s17.postimage.org/4k9s87vlr/image.jpg[^]
Posted 8-Feb-13 5:36am
Edited 8-Feb-13 5:42am
(no name)497.5K
v2
Comments
Mike Meinz at 8-Feb-13 11:38am
   
I don't know if this will help or not. I usually do a CLEAN and REBUILD after changing the .NET Framework declaration.
newcoder1 at 8-Feb-13 12:07pm
   
nothing new mike meinz i tried but nothing happen
Sergey Alexandrovich Kryukov at 8-Feb-13 12:36pm
   
My best recipe is to minimize the use of designer.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,651
1 Sergey Alexandrovich Kryukov 6,400
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,542


Advertise | Privacy | Mobile
Web02 | 2.8.140921.1 | Last Updated 8 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100