Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
good night i need help for this problem

i use this proyect (dll)
Custom ProgressBar Control[^]
he work perfectly in vs2010 (0 error,0warnings,etc)

but in the VS 2012 i get this errors.... (only in the design mode)

Message 3 Object of type 'System.Int32' cannot be converted to type 'System.Int16'.  0 0 

Message 8 The variable 'ProgBarPlus1' is either undeclared or was never assigned. C:\Users\carloseduardo\Documents\Visual Studio 2012\Projects\Proyecto FDT\nuevo FDT con bass.dll\Facilitador de Tareas\Facilitador de Tareas\Form1.Designer.vb 2139 0 

Message 9 Duplicate declaration of member 'ProgBarPlus1'  0 0 

Message 14 Duplicate declaration of member 'ProgBarPlus3'  0 0 


en System.ComponentModel.ReflectPropertyDescriptor.SetValue(Object component, Object value)
en System.ComponentModel.ReflectPropertyDescriptor.ResetValue(Object component)
en System.ComponentModel.Design.Serialization.CodeDomSerializer.ResetBrowsableProperties(Object instance)
en System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
en System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, Object codeObject)
en System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager manager, String name, CodeStatementCollection statement


:'( i need help if i compile he work perfectly ( im sure the error in the designer vs2012 is all fakes
Posted
Updated 24-Aug-12 10:27am
v4

With the first error, basically you're trying to convert a variable with larger precision to a variable with smaller precision which isn't allowed directly.

The other errors indicate a duplicate variable.

I would suggest either contacting the author of the article to resolve the problem in the code or to modify the code to get rid of the errors.

If you decide to solve it by yourself, then investigate the code from the article and try to pinpoint the location of the problem.

When you add that custom control to your form, the code in the custom control is ran so this is why you're facing the errors during the design time. To pinpoint the exact locatin, use the debugger and/or utilize the System.Diagnostics.Debug.WriteLine method to get more information from inside of the control.
 
Share this answer
 
Comments
spiritdead 24-Aug-12 16:42pm    
is rare :S because in the visual studio 2010 work perfectly and running perfect, but if i open the proyect in the visual studio 2012 i get this errors, i cant find the author for this reason i try fix but i need help :S
Wendelius 24-Aug-12 17:00pm    
Try debugging the control. Most likely there's some breaking changes in VS 2012 if it works in VS 2010. It's good if you have also notified the author so he may have a response when he reads the comments concerning the code.
spiritdead 24-Aug-12 19:10pm    
how to dedebug the control ?
Philippe Mori 24-Aug-12 18:03pm    
Generally the designer is less buggy from one version to the next but in some cases it might not be the case. As mentionned by the author of this post, debugging the control will generally tells why the problem occurs.

Some other things to try is close all Visual Studio instance and try again. Sometimes it seems that VS get corrupt and restarting it will help.

By the way, one important thing is to check form (ort user control)constructor and load event handler if you are in design mode and skip any code that should not be executed in that case.
Wendelius 25-Aug-12 2:44am    
Good points.
fix uploaded in the author link :) thx MSDN and SOftjaen for the fix
 
Share this answer
 
Comments
Member 2497977 17-May-13 16:12pm    
Hi Spiritdead , I have in the same your problem, how can you fixed this problem. could you send to me the solution.
thank you very much
spiritdead 31-May-13 13:13pm    
go to post and find my comment you can see the link

http://www.mediafire.com/?6lf5pbh40ae0wma

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900