I think we need a sticky post. DONT USE RICHTEXTBOX FOR SYNTAX COLORING! :laugh: xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots
I tried to paste a single Regex solution using groups, but the post somehow crashed the forum..:^) xacc-ide 0.0.12 now with C#, MSIL, C, XML, ASP.NET and HLSL coloring - Screenshots
If you want almost constant lookup time (O(1)), use a hashtable. I think that a switch also uses a hash table, I'm not sure though. A Stack is a bad option, a SortedList works faster than an ArrayList, since you add items to the list only once. Regards Senthil
If you do a CVS check you will find more recent code, but the project has gone a bit stale (woman & work makes leppie a dull boy :( ) top secret
Download xacc-ide 0.0.3 now!
See some screenshots
While there are a few ways ranging from overriding ProcessDialogKey and doing nothing while a state variable is set to P/Invoking SetWindowsHookEx and writing an extremely efficient and robust keyboard hook, the most simple way is to set RichTextBox.Enabled to false. The point of disabling a control is to disable input into that control. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles] [My Blog]