Custom Button Dynamically

Can I create a Custom Container Control (Button) Dynamically by code in runtime?

I try this at a MouseDown event:

dim c as new myButton
c.top = 40
c.left = 40

But nothing happens.

Thanks in advance.

If it’s a container control don’t you have to EmbedWithin?

Great, Tim! Thanks a lot!!!

http://documentation.xojo.com/index.php/New