# Script Editor

The Script Editor is used to edit scripts. Cognex Designer provides a powerful scripting environment using Microsoft C# .NET. You can write standard C# .NET code and have it execute within the Cognex Designer environment.

The Toolbox is similar to the Tag Browser, but contains $ Functions, as well as Tags. You can drag and drop items from here into the script in order to use it.

The Properties window contains a list of the Using statements being used by the code (see the Calling External Code and Using Statements topic for more information), and a link to the Script Reference dialog (see the Adding References topic for more information), which lists all the libraries and DLLs that the script is currently referencing, and can reference.

- Saves the current script, so long as there are no errors.
- Deletes the current script. Prompts for confirmation before removing.
- / (lower left-hand corner of the editor window) Indicates whether or not the script was correctly formatted or not, after the script has been compiled.

Note: For more details on how to develop with the Script Editor, see the Scripting topic.