Hi guys, I got some problems ,
first it adds a tabpage to a tabcontroll.
Then its supposed to add the assigned "form" that is connected to the tab page.
(When i click the tab page the window gets focused).
But when i try to add a image to the imagelist and assign the imagelist index to the tab page. It doesnt show up.
Well, As i add and bind the images it doesnt show up.
So anyone..?
first it adds a tabpage to a tabcontroll.
Then its supposed to add the assigned "form" that is connected to the tab page.
(When i click the tab page the window gets focused).
But when i try to add a image to the imagelist and assign the imagelist index to the tab page. It doesnt show up.
VB.NET:
'additional code understanding
Public CurrentKey As Integer
Public ChildForms(511) As Form
Public ChildFormKeys(511) As String
Public Function RegisterForm(ByVal addedform As Form)
For Each f As Form In Me.MdiChildren
If f.Name = addedform.Name Then
Me.FormTab.TabPages.Add(addedform.Name, f.Text)
Me.TabImages.Images.Add(addedform.Name, Me.MenuStrip.BackgroundImage)
Me.FormTab.TabPages(Me.FormTab.TabPages.IndexOfKey(addedform.Name)).ImageKey = Me.TabImages.Images.IndexOfKey(addedform.Name)
ChildForms(GetFormIndex(addedform.Name)) = addedform
ChildFormKeys(CurrentKey) = addedform.Name
CurrentKey = CurrentKey + 1
End If
Next f
End Function
'GetFormIndex just located the index of the Tag from the "Name" of the form
Well, As i add and bind the images it doesnt show up.
So anyone..?