Steps to add code snippet in toolbox are
1. Write down code which need to put in Toolbox.
| this.ConnectionString = "Data Source=xxxx;Initial Catalog=xxxx;User ID=xxxx;Password=xxxx"; |
2. Go to View -> Toolbox

3. Drag code to toolbox. See rectangle in above screen shot.
4. You can give name to code also. like Items in above screen shot.

Ruchi HPosted Jul 22, 2013, 2:44 AM
Nice Tip :)