The P&D wizard does it by looking at the source code
The list of required ocx's etc. (if any) are at the top of your .vbp file