Okay, I have a lill' problem;

I'm creating a program that would run a script which would hold something like this (pseudocode for now)

; Formscript
DLLUse = "Formscript.dll"
create.object(commandbutton,mdiform1,mdiform1.left+120,mdiform1.top + 120)
commandbutton.click(call Blaat@DLLUse)

okay, that didn't make sense I presume :),

What I want is to create an object on a MDI form and attach some code to it so when you click on it... that it works :)

The only thing I figured out now is to Create and Destroy a window.

(btw: how can I 'find' open MDI forms by name and kill 'm?
for example: Kill current window. and that it kills the MDI Form that is currently active.

If someone could make something out of this garble ;)


Greetz & Bye,

Devion