Summary : How to Create a Custom Webpart in SharePoint 2013,Creating a Visual WebPart in SharePoint 2013 using Visual Studio 2012
Creating a Visual WebPart in SharePoint 2013 is different than what it was available in SharePoint 2010. In SharePoint 2010, Visual WebPart was made of a User Control and a Webpart file which were used to define Controls and define properties of the webpart. In SharePoint 2013 however the Visual WebPart template has Changed. Both the User Control and WebPart classes are merged to Create one template. Also, now you have one Visual WebPart template that can be used to Create both Sandbox and Farm solution. In this post we will look at detailed steps on how to create a Visual WebPart Farm solution and add the wsp to your SharePoint site.
Step 1 – Create a SharePoint 2013 Visual WebPart Project.
Step 5 – Once you add the Textbox save the project and click Start.
Step 8 – Once you add the webpart, save the page and you would see the resulting webpart with a textbox.
Original article : Here