Copy the code to the Visual Studio toolbox

This is an interesting tip for the .NET Developers using Visual Studio .

It may happen sometimes that you need end up coping the code from one form to another or sometimes to the notepad and then copy to the Visual Studio .

Visual Studio has a feature that enables the developers to copy or place the code snippet to the toolbox .

Select the necessary code block and drag it to the Toolbox .

To rename the cose snippet , right click on the snippet and click Rename .

To use the snippet in other application , just drag it from the toolbox to the code editor .

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

Leave a Reply


x

Interesting BlogPosts to read

Here's how to detect installed 'Antivirus' software name by @kunal2383
In the last blog post, we discussed the C# code to detect whether any antivirus product is already i...
Visual Studio 2017 Tips and Tricks - IntelliSense filtering
Microsoft’s Visual Studio 2017 IDE includes a new feature called Intellisense filtering that lets th...
Passing Array of Integers to ASP.NET Web API REST Service
You can pass an array of integer to an ASP.NET Web Web API REST service by setting the [FromUri] att...