Create new instance (run-time)

Dec 16, 2010 at 7:44 AM


I'm trying to add a new instance of the scintilla in a panel-control at run-time. Anyone knows how?

 '   create new document and add it to existing bar
Dim newDockItem As DockContainerItem = New DockContainerItem()
newDockItem.Text = txt_file.Text

'   add scintilla-control to the panel
Dim t As ScintillaNet.Scintilla = New ScintillaNet.Scintilla()

Dim panel As New PanelDockContainer()

With frm_main.Bar3
End With
Adding the panel works, but it doesn't show the scintillanet in the panel.

Dec 22, 2010 at 4:16 PM

Got it to work. I did something stupid, but thanks for looking.