Hi, i have a project to generate code for TabControl.
I'm doing 1 form whit textbox-es to enter the tabcontrol properties (name, size, pozition ...) For the number of the tab pages in the control i'm generating dynamicly another tab control with the number of tab pages entered in the tab control tab pages field
Public Sub TextBox_number_pages_TextChanged.....
Dim tab_pages As TabPage
Dim n As Integer = Convert.ToInt32(TextBox_number_pages.Text)
For i As Integer = 0 To n
Dim TextBox_tp_name As New TextBox
TextBox_tp_name.Text = ""
TextBox_tp_name.Location = New Point(220, 30)
tab_pages = New TabPage()
tab_pages.Parent = TabControl1
tab_pages.Name = "TabPage " + Convert.ToString(i + 1)
tab_pages.Text = tab_pages.Name
tab_pages.Controls.Add(TextBox_tp_name)
TabControl1.Controls.Add(tab_pages)
this is the part of the code, i have more fields.
What i'm trying to do is when i enter the tab name in theTextBox_tp_name field in the generated dynamicly tab pages, the tab_pages.Text have to change when i enter a new name in the theTextBox_tp_name
I thing that i can't explain exactly what i'm trying to do but i can't explain it without posting the whole code.