Click here to Skip to main content
12,752,054 members (28,477 online)
Click here to Skip to main content
Add your own
alternative version


96 bookmarked
Posted 7 Apr 2008

Codez Bank: A code snippet bank application

, 30 Jun 2008 CPOL
Rate this:
Please Sign up or sign in to vote.
An application that stores and manages useful code snippets and keeps them always handy.


Folders view


Snippet view


CodezBank is just a small application that stores source code snippets organized in a hierarchical manner with basic search ability. You just copy and paste the code snippet into or from this application via the Clipboard. If you have a bag of coding tricks, then you want to keep them in this app.


Every time I work on some project, I always find myself digging through books and my old files to see how I did one or another piece of code. Although it works, it usually requires a lot of time. Sites like CodeProject keeps code always available, but if I am offline or on a remote location without the connectivity, then I have always wanted a small application that keeps the code snippets organized and handy.

Points of Interest

This application is a medium to advanced MFC project that covers advanced usage of libraries provided by Microsoft.

  • Storing data in a binary tree.
  • SDI Explorer like interface with multiple views in the right pane (Color syntax and List view).
  • Colored syntax editor.
  • Tree drag drop that rearranges the data in the binary tree.
  • Usage of Regular Expressions provided by the vbscript.dll #import.


Version - 4/7/08:

  • Initial code.

Version - 4/22/08:

  • Fixed undo bug in the code editor. Thanks to ndrsoft for pointing out a solution. - 6/30/08:

  • Added more C++/C keywords as was suggested by the readers.
  • Changed tool bar to have a 256 color bitmap instead of 16 color.
  • Added documentation panel to the Source view. You can put all the explanation down there instead of comments so the code looks cleaner for the eye. I found it useful to paste there the whole MSDN or other documentation page(s) and links. Then, you will have the whole shebang in one tree node.


  • Syntax editor very limited as far as undo actions. (I am figuring this out. If anyone knows how to fix that, drop me a note) So do not Ctrl+Z, it won't work. Fixed.
  • Syntax editor currently highlights a subset of C and C++ keywords. I will add VB and C# later.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Architect Robotz Software
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralConsider adding word wrap to bottom section Pin
Lyle M24-Feb-09 7:05
memberLyle M24-Feb-09 7:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 30 Jun 2008
Article Copyright 2008 by steveb
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid