Template Coder Template Coder

The purpose of Template Coder is to create the event code for one or preferably more controls at a time from the event code of a 'template control'.

Coding at Turbo Speed

Coding at Turbo Speed

This add-in can be very useful when the same event code is needed by multiple controls, for example, code to highlight/Unhighlight control text when it gets the focus. This functionality needs code in both the GotFocus and LostFocus events; this makes for a very repetitive task. Template Coder can remove a vast amount of copy and paste. To have standard code written out when a control is pasted on a form use Control Coder.

When the add-in is displayed the controls on the form are listed in the 'Template Control' DropDown. Select the control that will act as the 'template'. The events for the template control that contain code will be displayed and the other controls of the same type are listed in the ListView at the bottom. Select the events that you want used, the controls you want them to apply too and click 'Generate'. If code exists already for an event then no changes will be made.