TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
.NET Tips #3
Dhanik Sahni
Jul 15, 2013
3.6
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
Put frequently used code in Toolbox.
We can put frequently used code snippet in Toolbox and use whenever required example SQL connection string.
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.
Next Recommended Reading
C# Tips