VB Syntax+

Cost
Free
Version
1

Readme

VB Syntax+ README file

About

The VB Syntax+ control allows you to add a VB Syntax Highlighter to your Application.

Installation

In order to install this application, please copy the file to your system directory. Then click Run on your start menu, and enter Regsvr32.exe vbwColour.ocx. To add the ocx control to your project, click Project|Properties. Then click browse, and select vbwColour. You will now see a new icon in your toolbox.

Properties

ALL properties can be set at both design time and run time.

Apart from the normal Rich Text Box properties, there are:

AutoIndent - Specifies whether to automattically indent text when the user presses the return key
CanCopy - Can we currently copy text?
CanPaste - Can we currently paste text?
Colour_Comment - Sets the comment colour
Colour_Keyword - Sets the keyword colour
Colour_Text - Sets the text colour
CurrentColumn - Returns the current column
CurrentLine - Returns the current line
GetFirstLineVisible - Returns the first visible line in the rich text box.
hWnd - Returns the rich text box's hWnd
Indent - Sets the indent value when the user presses the tab key.
LineCount - Returns the number of lines
Mode - Sets the mode. Either vbwText, vbwVB or vbwRTF

Methods

Clear - Clears the text box
ColourText - Colours the whole text box as plain text, regardless of the mode
ColourVB - Colours the whole text box as VB, regardless of the mode
Copy - Copies the selected text to the clipboard
Cut - Cuts the selected text to the clipboard
InsertCode - Inserts code at the cursor point. If you use .SelText property, the text will not be coloured.
Paste - Pastes the clipboard contents

Events

BeforeCut (Cancel As Boolean) - Occurs before cutting text. Setting Cancel to true cancels the action
BeforeCopy (Cancel As Boolean)
- Occurs before copying text. Setting Cancel to true cancels the action
BeforePaste (Cancel As Boolean)
- Occurs before pasting text. Setting Cancel to true cancels the action
ProgressChange - Occurs when the colouring progress changes
ProgressComplete - Occurs when colouring is complete

Examples

There is an example project (prjExample.vbp) included with this control.

Known Issues

ScrollBars property is not yet implemented (due to a VB bug)

Product Support

If you would like to report a bug, please email [email protected] . Please note that we will take no responsibility for any loss, however caused through using this or any other VB Web control.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debugging is anticipated with distaste, performed with reluctance, and bragged about forever.” - Dan Kaminsky