I have a SharePoint 2013 farm, I created a new SharePoint solution as a sandbox solution and I can add a visual web part as a new item that was added successfully.
![add new visual web part in sharepoint 2016 solution](https://debug.to/?qa=blob&qa_blobid=4566857271105897582)
When I built the solution, I faced this error.
Error 2 The name 'InitializeControl' does not exist in the current context
c:\users\awis\documents\visual studio 2017\Projects\SharePointProject\SharePointProject\VisualWebPart1\VisualWebPart1.ascx.cs
![The name 'InitializeControl' does not exist in the current context in SharePoint 2016](https://debug.to/?qa=blob&qa_blobid=9128223665704925673)
How I can fix this error "The name 'InitializeControl' does not exist in the current context in SharePoint 2013"?