SpiceLogic Inc.
                                                                                                     SpiceLogic Inc. Home PageProductsJournalMy AccountHelp DeskContact Us
 
Knowledge base  : .NET Win HTML Editor Control    - Standard Edition
Welcome Guest   Login

Skip Navigation Links. .NET Win HTML Editor Control

Documentation  Documentation

Download   Download the latest version

Back to the home of knowledgebase forum Missing toolbars when created at runtime

An user   11/30/2009 6:27:09 AM

When I create an instance of the html editor at run time using the following code

dim cHTML As SpiceLogic.WinHTMLEditor.HTMLEditor
cHTML = New SpiceLogic.WinHTMLEditor.HTMLEditor
cHTML.LicenseKey = "XXXX-XXXX-XXXX-XXXX"

The toolbar are empty (see notoobars.jpg)
Do I need to instantiate the toolbars separately, and if so, how do I do that?
 



Resolution:
- [SpiceLogic Support Technician]   12/12/2009 12:23:19 AM

Dear Steve,
 
Please call BeginInit() and EndInit() method of the control after you add the control to the form. You dont need to add the factory buttons like cHTML.Toolbar1.Items.Add(cHTML._factoryBtnBold)
, it will be added automatically. Here is the example,
 
            HTMLEditor myEditor = new HTMLEditor();
            this.Controls.Add(myEditor);
            myEditor.BeginInit();
            myEditor.EndInit();

			



Home  || Products  || Journal  || My Account  || HelpDesk  || Contact Us

Website and Software Copyright ©2010, SpiceLogic Inc., All Rights Reserved.