Custom Option in Tool Box in Visual Studio

We can drag and drop selected code of a block as needed.

We will learn this step-by-step.

Step 1: First open your Visual Studio application. Select a line of code and drag and drop this selected code to the Toolbox general section like the following:

drag and drop
                                                                         Image 1

text file
                                                                              Image 2

Step 2: If you want to rename this block in the Toolbox then right-click on your item and select "Rename Item".

rename item
                                                                              Image 3

exception code
                                                                             Image 4

Now you can use this code of block anywhere in your application by dragging and dropping it.

Up Next
    Ebook Download
    View all
    Learn
    View all