Creating Forms with Design-Time Controls
The Scripting Object Model
Writing Script for Script Objects