On this page:
CLIControl
The CLIControl is a command line interface that you can use in your Windows Forms applications. It is event driven, unlike the console window in console application, this control is event driven and therefore compatible with Windows Forms. The control consists of a black area with a flashing cursor. The user activity generates events to the owner form. The current version has no customization possibilities, the font size number of rows and columns, and so on, is locked. Some methods: GetChar, SetChar, WriteLine. Properties: CursorX, CursorY. Events: UserTyped, FunctionKey. License: You may use this control freely (crediting is required – see bottom of the page). The source for this control is closed. Download here. Check here for news and updates.
RegexBox
This is an extension of the RichTextBox control in Windows Forms. The RBox control in the RegexBox library is highlighting words based on regex expressions. It basically has two extra methods. One of them, DoSyntaxHighlight, is used to perform highlighting on a document that has text in it. It is usually called if something is assigned to the Text property of the control, to make the text highlighted. Text that is typed in is highlighted in real time.
The other method called AddRegex. This method is called one or more times at initialization to tell the RBox what to highlight, as the picture shows. In the example in the picture, the RBox is told to highlight the word “hej” and anything within parenthesis. License: You may use this control freely (crediting is required – see bottom of the page). The source for this control is closed. Download here.
Crediting
Any application that use any of the controls mentioned on this page must contan the text “X control written by Anders Hesselbom” in the about box or equivalent. Replace X with the name of the control(s) you are using.
