Programmatically adding a new button

I would like to add a new button programmatically (Not using the IDE)

dim x as new WebButton
x.Width=100
x.Height=30
x.top=10
x.Left=10
x.Visible=true

I can see the button in the debugger but not in the browser.

The recommended way to do this would be to put the button on a WebContainer and then add the WebContainer at runtime using EmbedWithin.

Thanks Paul