Visual Basic 6
- Start Visual Basic and create a new EXE project.
- From the menu bar, select Project > Components... This will bring up a list of components registered on your computer as shown in the screen shot below.
![Dialog box displaying a list of all components registered on the computer with XStandard XHTML Editor selected.](/218F0D2F-68B4-491C-AFF3-D4BD5EB0CD76/integration-vb-6-components.gif)
Scroll to the bottom of the list, select "XStandard XHTML Editor" and press the OK button. The XStandard control will now be visible on the Toolbox. - Select the XStandard control from the Toolbox and place it on a form. Use the "Properties Window" to configure the editor as shown in the screenshot below.
![Screenshot of the VB 6 environment. XStandard is on the Toolbox as well as on a form. The properties for the editor are displayed in the Properties Window.](/218F0D2F-68B4-491C-AFF3-D4BD5EB0CD76/integration-vb-6-form.gif)
Tips
Put data into the editor via the .Value
property. For example:
XHTMLEditor1.Value = "<p>Hello World</p>"
Use the .Value
property to get the data from the editor. For example:
MsgBox XHTMLEditor1.Value
You can store the XML file for the Styles drop-down list, CSS, XML file for the toolbar buttons and the license file in "VB Resources". You can then programmatically reference these files. For example:
XHTMLEditor1.Styles = StrConv(LoadResData(101, "CUSTOM"), vbUnicode)