This is a migrated thread and some comments may be shown as answers.

Windows Forms decompiles, designer gives errors

6 Answers 432 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jamie
Top achievements
Rank 1
Jamie asked on 06 May 2017, 03:39 PM

I decompiled a VB.NET application built around 2011.

The decompiled code looks fine - no errors when I load it into VS 2015.

However, when I attempt to open a form designer I get many errors.

A few types:

The type 'System.Windows.Forms.Form' had no property named 'XXXX' where XXXX is a control name like StartStrip1.

The variable 'XXX' is either undeclared or was never assigned.

The name 'XXX' is already used by another object. 

Duplicate declaration of member 'XXX' 

1. Is this a bug in the decompiler, if so, how can I fix this?
2. Is there a step-by-step guide to decompiling windows forms and getting them to work in VS again?

Thanks

6 Answers, 1 is accepted

Sort by
0
Jamie
Top achievements
Rank 1
answered on 06 May 2017, 03:41 PM
Slight amendment to original post - I'm using VS 2017, not 2015
0
Jamie
Top achievements
Rank 1
answered on 06 May 2017, 03:41 PM
Slight amendment to original post - I'm using VS 2017, not 2015
0
Jamie
Top achievements
Rank 1
answered on 10 May 2017, 01:01 PM
Hi

Does anyone have any advice re: my question?

Thanks 
0
Alexander
Telerik team
answered on 11 May 2017, 07:34 AM
Hello Jamie,

Yes, this is obviously a bug in JustDecompile. The perfect scenario would be the generated project to compile and work right away with no manual modifications needed, but this is not always the case.

There is no such tutorial. One way to go with it is to fix them error by error manually. However, we would like to take a look at those errors and add them to our backlog. Would it be possible to zip and send me the assembly in question at my email - alexander.dimitrov [at] telerik.com?

Regards,
Alexander
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
neil
Top achievements
Rank 1
answered on 24 Jan 2020, 06:43 AM
Did you find a fix for this ? 
i have the exact same problem ! 
0
Jamie
Top achievements
Rank 1
answered on 29 Jan 2020, 03:33 PM
Yes - went through fixing line by line. Sorry couldn't be more helpful!
Tags
General Discussions
Asked by
Jamie
Top achievements
Rank 1
Answers by
Jamie
Top achievements
Rank 1
Alexander
Telerik team
neil
Top achievements
Rank 1
Share this question
or