Creating Custom Forms
InitializeComponents Procedure
The code that specifies the lay-out of your custom form is separated from your actual script code. The lay-out code is auto-generated by the ScriptIDE and is stored in the InitializeComponents procedure. This VBScript-based procedure is automatically saved in the script file when you save your script or when you re-open the script. This also means that the InitializeComponents procedure is not displayed in your actual script code in the script editor window. It is, however, possible to view the auto-generated InitializeComponents procedure.
To view this code, open the Tools menu and choose Show Resource Script. The entire script will be displayed as it will be saved.
The InitializeComponents procedure contains a marker that it concerns auto-generated code that cannot be updated. You should therefore always use the Form designer to change the GUI of your custom form because changes to the InitializeComponents procedure will be overwritten.