Hide TextView/HTMLView tabs

Apr 21, 2008 at 6:49 PM
Can someone tell me how to hide the TextView/HTMLView tabs without causing any issues?


Apr 22, 2008 at 8:58 PM
In the rte.cs file of the project. Find the following line and comment it out:
tabstrip.AddTab("HtmlView", "OnHtmlView");

that should do it.
Apr 23, 2008 at 4:23 AM
Thanks. I'll give it a try. I assume this would require me to recompile the control? Is it possible to use the control without it being compiled (i.e. including the source in my project)?
Apr 23, 2008 at 2:22 PM
Yes, you'll need to recompile. I haven't tried adding the RTE to a project but it should be possible. If you are using VS 2008 you could try clicking and dragging the RichTextEditor folder from the os File Explorer to the root project directory in Visual Studios solution explorer... this would probably work, but I haven't tried. In 2005 you'd probably have to do the right mouse click on the project root and use add existing.
Apr 23, 2008 at 6:31 PM
You can also hide the tab by adding the following line:

tabstrip.Visible = false;
Aug 16, 2008 at 12:05 AM
Where would you be putting the tabstrip.visible = false?