I'm trying to build a user control that will do the following.

A. Find a window based on caption
B. Enumerate all Controls on the window if found
C. Allow the user to just specify the window title and control Caption to send events to the control

Ie..

If Msg1 was the control name

Msg1.AppTitle "Calculator"
Msg1.ButtonClick "3"

This would find the app called calculator
and send the BN_CLICK event for "3"

I need some help on how to create the user control.
I've made functions, modules, galore but never a control
before. (heh i'm a poet and i didn't even know it)
Can anybody give me a play by play on making
Reliable, Stable Excellent controls. I can handle all of the
api work above, but i don't know how to set the
properties of control ect......
I just need a guide on how to create my own user control.
Thanks