I’m working on a Visual Studio 2005 ASP.NET project which makes use of FreeTextBox to provide rich text editing capability. My code sets up the toolbar programmatically but, despite following the installation instructions to the letter (including setting up the FTB TagPrefix), my code was failing to compile with The type or namespace name ‘Toolbar’ could not be found on the following line of code:
Toolbar ftbTools = new Toolbar();
I initially fixed this by adding the FreeTextBoxControls prefix:
FreeTextBoxControls.Toolbar ftbTools =
new FreeTextBoxControls.Toolbar();
But then my code fell over with a similar error on the very next line:
ftbTools.Items.Add(new ParagraphMenu());
Not wanting to have to add the FreeTextBoxControls prefix to this and my other 18 Add statements, I instead added the following using statement to my code file:
using FreeTextBoxControls;
Job done!