Thanks for your replies. The problem I have is that my app needs to allow the user to create views.
So I'm trying to find a way that users can provide their own name for a view.
If say "Label" is clicked on a pull down menu I can get the code to create a label, but I obviously need to provide a name, say lblTemp, in the Dim statement, and then Initialize it, etc.
The problem is that if the user creates a second label it will have the same name as the first, i.e. lblTemp.
Is there a way around this problem.
Thanks