Click here to Skip to main content
Click here to Skip to main content

Sticky Notes v. 1.8

By , 14 Jul 2006
 

Announcement

I no longer support the StickyNotes utility on CodeProject. Anyone interested in the latest version, please visit this site[^].

Introduction

At some point, I got tired of sticking PostIt notes around my cubicle, so I decided to come up with a replacement. So here I present the Sticky Notes - free replacement for paper PostIt notes.

Installing the Sticky Notes

Download the StickyNotes.exe from the link above into the directory of your choice.

Usage

Double click on the executable file, and you'll see a Sticky Notes icon in the system tray. When you right-click on the icon, the menu will popup, allowing you to create a new note and to search for an existing one.

Let's say you created a new note and typed in some text. Now, when you click on the icon in the top left corner, the menu will look like this:

Now, you can create a new note, save a note, delete a note, and change the font and background color. Notes will be persisted into the text file which will be created in the root directory of the specified user's profile for WinNT, 2000, XP, or higher, i.e. C:\Documents and Settings\administrator on Win2000. The file name will be constructed by concatenating the user name and the default file name, notes.dat. It will allow several people to have different sets of notes. For Win95, 98, or ME, the file will be created in the same directory where the executable is located.

If you want to search for the note saved previously, select Search from the main menu. Then, enter any string into the Look For field, and click the Find Now button. Double click an the appropriate item from the list-box below. And your note will popup! That's it. Enjoy!

System Requirements

This application was developed using VC++ 6.0 SP4, and tested on WinNT SP6A, 2000, and XP.

Version History

Version 1.0 - February 6, 2002

Version 1.1 - March 8, 2002

  • Fixed: During logging off or system shut down, the application did not persist the saved notes into the text file.
  • Fixed: It was possible to resize the note into a line or a dot and the note would become unrecoverable (pointed out by Paul Howes).
  • Added: A new note can be created when you double click on a tray icon with the left button (suggested by Trond Nilsen).
  • Added: If WinNT, 2000, XP, or higher is running, the file where the notes are saved will be created in the root directory of the specified user's profile. For Win95, 98, or ME, it’ll stay the old way: the file will be created in the same directory where the executable is located (suggested by Philippe Lhoste).

Version 1.2 - September 24, 2002

  • Fixed: When the previously saved note is displayed, the whole text inside the rich-edit control was initially selected.
  • Added: In the search dialog, when the note is selected, it can be displayed by pressing an 'Enter' key.
  • Added: Changed the 'Note' icon to a bitmap, added code to change the background color of the bitmap to be the same as a note's background color.
  • Added: Changed the 'Close' icon to a bitmap, added code to change the background color of the bitmap to be the same as a note's background color.
  • Added: In the search dialog buttons, an edit control and a list-box control now have WinXP-like look.
  • Added: Used Norm Almond's CLabel class for static controls in the search dialog.

Version 1.3 - February 15, 2003

  • Fixed: Removed Derick Cyril Thomas' code.
  • Added: A context menu to the note's rich edit control.
  • Added: A prompt dialog which is displayed when a note's text has been modified, asking an user if the note should be saved.
  • Added: In the search dialog, the listbox was changed to a list control, getting the scrolling for free.
  • Added: Only one instance of the search dialog can now be created.
  • Added: 'New Note' button (allowing to create a new note) in the search dialog.
  • Added: In the search dialog, if the edit control has focus, a search can be performed by pressing the 'Enter' key.
  • Added: A note can be closed by double clicking on a note icon.
  • Added: Support for Windows XP themes on XP - remove the .exe.manifest file if you don't like it.

Version 1.4 - November 3, 2003

  • Fixed: Displayed notes were not saved when the app was being closed.
  • Added: Save a note into a file.
  • Added: When double clicking on a note's title bar, the note would shrink, leaving only a title bar and a date's status bar visible. Clicking the title bar again would open up the note (suggested by Todd Smith).
  • Added: A gradient look to the title bar (used Irek Zielinski's CGradientStatic class ported to WTL).
  • Added: Note can be deleted from the search dialog.

Version 1.5 - January 3, 2004

  • Added: 'Recent Notes' in the system tray context menu - shows last six accessed notes (suggested by Girb and John Drescher).
  • Added: Transparent notes.
  • Added: Print notes.
  • Added: Hyper link recognition.

Version 1.51 - January 26, 2004

  • Fixed: If there are some open notes covered by another window and a user right-clicks the system tray icon, then all open notes move to front (pointed out by tomrowton).
  • Fixed: If there are some open notes covered by another window and a user double-clicks the system tray icon to create a new note, it is created as a background window (pointed out by tomrowton).
  • Fixed: Wrong alpha value used to describe the opacity of the note (pointed out by tomrowton).

Version 1.52 - February 8, 2004

  • Fixed: If there is an open note and it's deleted from the note's menu, it was still being shown in the recent notes list.
  • Added: Menu item 'Set Font' has "..." (suggested by Owen).
  • Added: Date and time are locale specific (suggested by Owen).
  • Added: If there is a note open and a user selects the same note to open in the recent notes list, then the already open note will be activated (suggested by tomrowton).
  • Added: Bring all open notes to front.

Version 1.6 - May 8, 2004

  • Fixed: If you click 'X' in the upper right corner, color is not saved.
  • Added: Change font color.
  • Added: The currently selected color and transparency have a tick mark (suggested by Owen).
  • Added: Changed the way a unique note's ID is generated.
  • Added: Transparency is now persisted (suggested by tomrowton).

Version 1.7 - September 25, 2004

  • Added: Note's title.
  • Added: Pin image (allows pinning a note) indicating if a note is the top most window.
  • Added: Import from a file.

Version 1.8 - October 30, 2004

  • Fixed: Spelling error in the window menu item 'Transparent'.
  • Added: Mouse wheel support.
  • Added: Changed static controls holding 'Close' and 'Pin' images to buttons.
  • Added: When a note becomes inactive, the title bar changes its color to an inactive window caption color and vice versa.
  • Added: Moved the option to insert a title to the window menu (suggested by Tony W).
  • Added: Save a note whenever it loses the focus (suggested by MageLord).
  • Added: Persist all notes to the file when any note is saved.
  • Added: Persist note's position and size (suggested by tomrowton).
  • Added: When an app starts, it displays notes that have been open before the app closed (suggested by MageLord and Tony W.). (So you don't need to remember to open your notes every time you restart or change the user.)

Thanks to:

Terms of use

THIS SOFTWARE IS FREE FOR PERSONAL USE. YOU ARE FREE TO USE THE SOURCE CODE IN YOUR APPLICATIONS: FREEWARE, SHAREWARE, OR COMMERCIAL. YOU ARE NOT ALLOWED TO USE THE DEMO APPLICATION AS A WHOLE IN COMMERCIAL OR SHAREWARE PACKAGES WITHOUT WRITTEN PERMISSION AND PRIOR CONSENT FROM IGOR VIGDORCHIK.

Disclaimer

THIS SOFTWARE AND THE ACCOMPANYING FILES ARE DISTRIBUTED "AS IS" AND WITHOUT ANY WARRANTIES WHETHER EXPRESSED OR IMPLIED. NO RESPONSIBILITIES FOR POSSIBLE DAMAGES CAN BE TAKEN. THE USER MUST ASSUME THE ENTIRE RISK OF USING THIS SOFTWARE.

License

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

About the Author

Igor Vigdorchik
Web Developer
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Generalgreat reminder and winks reminder tool,record your minds quicklymembere_ilite20 Jul '08 - 16:03 
www.aisnote.com
download:
http://bbs.aisnote.com/coms/files/folders/aisnote/entry2.aspx[^]
Generalcannot it stick on a webpage ,memberlilyshining122 Oct '07 - 19:11 
cannot it stick on a webpage ,i want develop a sticky note like diggohttp://www.diigo.com/[^]
 
wu

GeneralGood ProgrammemberGautam Jain1 Apr '07 - 19:11 
Hello Dear Members,
 
Sticky Notes program on this page is very good.
 
But if you are looking for some extra-ordinary features, please have a look at this sticky notes program called NoteZilla - http://www.conceptworld.com/
 
Regards,
Gautam Jain

QuestionWhy is the obvious not obvious?memberNGS 54967224 May '05 - 5:00 
I should think that those of you who want this excellent application to do what you personally desire, since the code is available, why don't you modify it to do what suits you? Isn't that one of the very real benefits from this web site, to be able to find good starting places from which to launch your dream app? Perhaps it is selfish of me but when/if I get around to posting any of my projects that benefit from the knowledge found here I will only modify to fit reader's suggestions if those ideas suit me. If the suggestion doesn't, then it is up to someone else to make the changes and post the 'improved edition' to the site under their own name, giving credit to the inspiritor, and they can then field the additional demands of the lazy public.
I write applications either for money or to make me happy. If they don't make you happy, write your own. If your submission doesn't make me happy, I write my own or 'fix' yours, smile and say, "what a good boy am I."
 
Astonied
AnswerRe: Why is the obvious not obvious?memberTrillo23 Nov '05 - 8:04 
I completely agree with you. Smile | :)
GeneralsuggestionmemberDavidDou2 Mar '05 - 5:01 
this program is great, some personal suggestions for convenience.
 
(1) it is better to save all notes under a user-specified folder
(2) one note one file
(3) have a note management window like below
--------------------------------
| +folder name |
| -note title |
| -note title |
| -note title |
| -note title |
| +folder name |
| -note title |
| -note title |
| |
--------------------------------
| |
| |
| if select one note |
| content will be here |
| in edit mode |
| |
--------------------------------
| [save] [delete] |
--------------------------------
 

GeneralRe: suggestionmemberDavidDou2 Mar '05 - 5:17 
the layout
---------------
| +folder name |
| |-note title |
| |-note title |
| |-note title |
| --note title |
| +folder name |
| |-note title |
| |-note title |
---------------
|if select one |
|note, content |
|will be here. |
|in edit mode. |
---------------
|[save] [del] |
---------------
GeneralRe: suggestionmemberIgor Vigdorchik2 Mar '05 - 12:21 
David, thanks a lot for your remarks.
 
Please download the latest code (version 1.9) from Sticky Notes site[^], download link is located at the bottom of the page, select version 1.9 download.
 
There are couple more changes in the 1.9:
1. Notes are saved in the xml format now.
2. Removed registry usage code, StickyNotes does not use a registry anymore.
 
Now back to your suggestions.
 
I did not want to use "one note one file" notion. The idea from the very beginning was and still is to have just one file for everything. I want this app to work off the floppy, zip drive, whatever...
That's why the file is saved in "Documents and Settings/user" folder. If I allow the user to specify a location it'd mean using the registry and it's something that I do not want to go back to.
Also if it's just one file it can be easily moved to the floppy, different computer, backed up, etc...
 
Igor.

GeneralRe: suggestionmemberDavidDou3 Mar '05 - 9:22 
(1) path to data file
Documents and Settings/user" folder is not a safe place for note, there are always many trash files there, users may delete it by mistak when doing system cleaning.
I understand, you don't want write anything to registry table to make it a green. this is good. two solutions:
a. save data in the same folder of the program
b. have a small ini file, it is not very boring, I guess
 
(2) note management interface
to make notes is for later convenience. organizing note in an hierarchical way is better and convenient for later reference. my suggestion is to add a foldable panel to the left of the note window for note management, a tree for all saved notes.
 
if you 'v tried Firefox's ScrapBook extension for note-taking
http://amb.vis.ne.jp/mozilla/scrapbook/
the interface is pretty good, I don't like the way it organizes data, folder and file names are not self-explaining.
 
hope you like my idea
 
David
GeneralRe: suggestionmemberIgor Vigdorchik3 Mar '05 - 11:24 
DavidDou wrote:
a. save data in the same folder of the program
b. have a small ini file, it is not very boring, I guess

 
Another requirement that I forgot to mention is to support more then 1 user on the same computer (to support XP user switching) so even ini file will not do. Sorry.
 
DavidDou wrote:
(2) note management interface
 
This is something to consider. I am working on a new search window now, maybe I'll incorporate a note management into the search in the future version so it'd be some kind of a search/management combination window.
 
Thanks a lot for your suggestion.
 
Igor.
 

GeneralRe: suggestionmemberIgor Vigdorchik5 Mar '05 - 7:08 
On the second thought I've realized that an user is always right Smile | :) . So what I'll do is the following. One of the things that I have on my ToDo list is an 'Options' dialog. I'll add it as an user's option to keep the notes file in either the exe folder or user's root directory.
Then the app will only have to check 2 locations where the file can be found. It should work, I think.
 
Igor.
GeneralRe: suggestionmemberAnna-Jayne Metcalfe8 Apr '05 - 12:02 
I'd personally want to store them in a folder of my choice, and would expect "My Documents" to be the default...
 
Anna Rose | [Rose]
 
Riverblade Ltd - Software Consultancy Services
 
Anna's Place | Tears and Laughter
 
"Be yourself - not what others think you should be"
- Marcia Graesch
 
"Anna's just a sexy-looking lesbian tart"
- A friend, trying to wind me up. It didn't work.

GeneralRe: suggestionmemberIgor Vigdorchik9 Apr '05 - 7:50 
Anna-Jayne Metcalfe wrote:
I'd personally want to store them in a folder of my choice
 
It'd mean using the registry to remember the location and I don't want it.
 
Igor.
GeneralRe: suggestionmemberAnna-Jayne Metcalfe9 Apr '05 - 9:25 
I still can't understand why you have such an objection to giving users that option.
 
From a personal perspective, I would prefer to use a folder I specify rather than have to change the way our systems are configured to match a single utility. Rather than do that, I (and many other users) would probably just find an alternative utility to do the same job, which in this case would be a real shame.
 
In part this is motivated by the fact that on my systems the "My Documents" folders are automatically backed up overnight, and I quite obviously want to ensure that the data stored by the app is backed up with it.
 
Add to that the fact that "C:\Documents and Settings\username" is not a folder applications should store data directly in (if you read the MS UI guidelines you'll see this is the case) and I'm sure you'll appreciate the reasoning behind my suggestion.
 
Please consider giving your users the choice.
 
Anna Rose | [Rose]
 
Riverblade Ltd - Software Consultancy Services
 
Anna's Place | Tears and Laughter
 
"Be yourself - not what others think you should be"
- Marcia Graesch
 
"Anna's just a sexy-looking lesbian tart"
- A friend, trying to wind me up. It didn't work.

GeneralRe: suggestionmemberIgor Vigdorchik9 Apr '05 - 10:38 
Anna-Jayne Metcalfe wrote:
I still can't understand why you have such an objection to giving users that option.

Anna, you misunderstood me. I do not object to giving users a choice, I object to using the registry. I'll gladly give them a choice if I knew how. So help me out, please. How to implement it giving the following requirements:
 
1. no registry, no ini file.
2. multiple users support.
 
Other then that did you like this utility?
 
Thanks a lot for your remarks, I do appreciate your input.
Igor.
GeneralRe: suggestionmemberWaleed12 May '05 - 22:48 
hi, I strongly agree with DavidDou .. but at first I have to say that the program is already great .. it's just that adding a note management window would be perfect and if you're worried about using the registry (which I don't understand why!) you may use a settings file as DavidDou suggested, or you may use an xml file as recommended for .net applications .. well, regarding enabling the users to choose the location for storing the notes, this is something I find very logical and intuitive .. at least you can add another option to the program which is to store the notes in individual files in the location the user specifies .. once again the program is great!
 
(a.k.a. Wal2k)
www.wal2k.com

GeneralRe: suggestionmemberIgor Vigdorchik14 May '05 - 3:33 
Waleed wrote:
if you're worried about using the registry
 
I want this app to work from floppy, zip disk, cd, whatever... Hence, no registry.
 
Waleed wrote:
once again the program is great!
 
Thanks a lot!
 
Igor.

GeneralAlt+Tab doesn't show notesmemberGeorge V. Reilly23 Dec '04 - 21:27 
I use Alt+Tab to switch between applications. This is deeply wired into my "muscle memory". Sticky Notes don't show up in the list of applications: probably because they don't show up in the taskbar either.
 
Is there a keyboard method to switch to Sticky Notes when some other app has the focus?
 
--
/George V. Reilly, Seattle, WA
GeneralRe: Alt+Tab doesn't show notesmemberIgor Vigdorchik24 Dec '04 - 14:15 
George V. Reilly wrote:
Sticky Notes don't show up in the list of applications: probably because they don't show up in the taskbar either.
 
Correct, it's by design.
 
George V. Reilly wrote:
Is there a keyboard method to switch to Sticky Notes when some other app has the focus?
 
No, but it's on my ToDo list.
 
Igor.
GeneralDateseparatormemberEsko Lakso13 Dec '04 - 20:20 
Hello
 
I love your little app, you get my 5 Smile | :)
 
The only thing I don't like is the dateseparator
In sweden we have date separated by '-' i.e 2004-12-13
but now it's 2004/12/13 in stickynotes
Here is how I would solve it.
 
TCHAR szDateSep[4];

int nLen = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDATE, szDateSep, 4);
::wsprintf(szDate, _T("%04d%s%02d%s%02d "), csSysTime.wYear, szDateSep, csSysTime.wMonth, szDateSep, csSysTime.wDay);

 
You might look at handling the timeseparator as well.
 
/Esko Lakso
GeneralRe: DateseparatormemberIgor Vigdorchik14 Dec '04 - 13:03 
Esko Lakso wrote:
I love your little app
Thanks.
 
I will modify the code according to your remarks.
 
Thanks a lot for your review, I greatly appreciate it.
Igor.
GeneralRe: DateseparatormemberIgor Vigdorchik18 Dec '04 - 16:19 
Hi, Esko.
I've fixed the app according to your remarks. You can download the latest code (version 1.9) from Sticky Notes site[^], download link is located at the bottom of the page, select version 1.9 download.
 
There are couple more changes in the 1.9:
1. Notes are saved in the xml format now.
2. Removed registry usage code, StickyNotes does not use a registry anymore.
 
Thanks,
Igor.
GeneralRe: DateseparatormemberEsko Lakso21 Dec '04 - 7:54 
Hi Igor,
 
Really good just got better.
 
Esko
GeneralRe: DateseparatormemberIgor Vigdorchik23 Dec '04 - 12:42 
Thanks a lot!
 
Igor.
Generaldeleted notesmemberhgood3 Dec '04 - 23:43 
It is possible to delete notes. But next time when you start sticky notes, deleted notes appear again.

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 14 Jul 2006
Article Copyright 2002 by Igor Vigdorchik
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid