I created an exact C# notepad clone, if you are interested you can find it here: http://www.simplygoodcode.com/2012/04/notepad-clone-in-net-winforms.html