generate browser

I’m generating new tabs successfully
but I am not able to generate new htmlviewer in each tab.
What am I doing wrong?

  TabPanel1.Value = TabPanel1.PanelCount - 1
  TabPanel1.Caption(TabPanel1.Value) = "Tab" + str(TabPanel1.Value + 1)
  dim generatebrowser as HTMLViewer
  generatebrowser = NEW HTMLViewer

Have a look on Youtube here . Pauls demo is just about what you’re trying to do.