Now you can see the breakpoint hit in design mode.You can start debugging as normal debugging.ġ0.
Keep the instance of UserControl Libray running and open the same solution again in the new opened visual studio instance.ĩ. Run the solution.User control will now run as a separate instance and it will open another instance of Visual Studio.Ĩ. Place the debug breakpoint in the desired location of the usercontrol’s source code.ħ. Go to Properties window of the user control library project and Click the Debug tab and in Start Action section choose Start external program and set it as devenv.exe(Browser the external program path as C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe).Ħ.
Right-click on the Usercontrol Library project and set it as startup projectĥ. From the visual studio toolbox, drag and drop the desired user control into the desired form.Ĥ. Create the project wherein you want to use the User control Library as explained in the Testing user control section of the article Create Winforms User controlģ.
Visual studio winforms designer link how to#
See the article Create Windows Forms User controlto understand how to create a user control in C# windows application.Ģ.
Create your user control library and build it. To debug C# Winforms User controls at Design Time, follow steps mentioned belowġ. 1 Debug C# Winforms User controls at Design Timeĭebug C# Winforms User controls at Design Time.