I posted the topic because, to me, is not exactly the same as creating dynamically any control in ASP.NET.
I need create dynamically a Combobox with a Treeview control inside it. Then, see the little sample code below:
Code: Visual Basic.NET
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim Combo As New EO.Web.ComboBox
Dim Tree As New EO.Web.TreeView
Dim Node As EO.Web.TreeNode
Node = New EO.Web.TreeNode("htpp://google.com.br")
Tree.Nodes.Add(Node)
Node = New EO.Web.TreeNode("htpp://yahoo.com.br")
Tree.Nodes.Add(Node)
Combo.Controls.Add(Tree)
Me.Controls.Add(Combo)
End Sub
When I run it I get the following error:
What am I doing wrong? What is missing in my code?
By the way. The next time that you delete a topic posted by me, please send me a feedback. My company is customer of Essential Objects since 2008, and this is that I expect, either to avoid that I stay waiting for a reply forever, either to I don't resend the same topic again.
Thanks in advance,
Marcelo Camarate
ValMark Solutions