Archives
-
Fix for the RichTextBox Undo Information Lost When Retrieving Text
namespace TextUndoBuffer { /// <summary> /// Work around for KB 812943, The RichEdit Control Undo /// Information May Be Lost When the Control Retrieves Text. /// </summary> public class RichTextBoxEx : RichTextBox { [DllImport("user32.dll", EntryPoint="SendMessage", CharSet=CharSet.Auto )] static extern int SendMessage(IntPtr hWnd, int msg,
ref GETTEXTEX wParam, System.Text.StringBuilder lParam);
[DllImport("user32.dll", EntryPoint="SendMessage", CharSet=CharSet.Auto )]
static extern int SendMessage(IntPtr hWnd, int msg,
ref GETTEXTLENGTHEX wParam, int lParam);
Syntax Highlighted Source Code in HTML
I've used this really great tool to highlight syntax for html output. The page allows you to paste text code into a textbox and syntax highlight it. Great for bloging, check it out.
~ Paul
First blog from the author of NetSpell
Hello Everyone. I decided I'd join the bandwagon and start bloging. This blog will be mostly about software development in the .net framework. Over the years I've come up with some interesting ideas and solutions. I hope share them though this medium.