First of all apologies I'm a newbie at this. The main problem I'm running into is that I keep getting an error when I try to run the program or add the usercontrol to the main form. "An item with the same key has already been added." from what I've been able to find out this is because I have two dictionary items in the program that have the same set of key:values.
I tried adding the dictionary object by making it a parameter to the new sub when the usercontrol is created, like so;
Public Sub S_M_Chocolate()
Call CleanHouseProtocol()
Dim thetemplate As New CMethodChocolate(Lightweaver)
thetemplate.Name = "thetemplate"
thetemplate.Location = New Drawing.Point(0, 0)
MasterGroupbox.Controls.Add(thetemplate)
End Sub
But i'm still getting the same "Item with the same key..." error.
Did I completely misunderstand your answer or am I doing it wrong?