Link to home
Start Free TrialLog in
Avatar of RayT
RayTFlag for United States of America

asked on

Visual Studio Generates Duplicate Code

Occasionally a form fails to open in Visual Studio because of a duplicate line of code in the xxx.Designer.vb file.  After I remove the duplicate line of code the form returns to normal.

What is the cause of this?  How do I keep this from happening?

Private Sub InitializeComponent()
        Me.components = New System.ComponentModel.Container()
        Me.components = New System.ComponentModel.Container()
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RayT

ASKER

Microsoft Visual Studio Professional 2019
Version 16.0.4
VisualStudio.16.Release/16.0.4+28803.452
Microsoft .NET Framework
Version 4.7.03190
Avatar of RayT

ASKER

I'm using DevExpress
Avatar of Bill Prew
Bill Prew

Well, I'd like to think they had resolved something that old by now, but who knows.  I'm still on VS2017 so can't really test here, but I suspect it's a subtle combination of things coming together in your specific case that triggers it.


»bp
Avatar of RayT

ASKER

Appears this bug is mature.  12 olds year.
@Ray Turner,

Are you all set with this now, or do you need more help?  If all set, could you please close it out now.  If you need help with the question close process take a look at:



»bp
Avatar of RayT

ASKER

Thanks!