Display a WebCanvas at runtime

Is it possible to display a WebCanvas at runtime? I had created a CustomCanvas SubClass with some codes in the Paint.Event.
I had tried:-

Dim CanvasBarChart As New CustomCanvas CanvasBarChart.Visible = True CanvasBarChart.Invalidate

The WebCanvas does not display in my WebPage.

You cannot do that. You got two options :

  • Drag the customCanvas to the webPage, make it invisible in the IDE and reveal it when you need it.
  • Place it onto a WebContainer and use Embedwithin to show a new instance.

Hello Michel, Thanks for your answer, this is what I am looking for.:slight_smile: