I need a little help with variable scope ( I think that is the right term)

As I understand it, the follow could be used to add a button to my form at runtime ...

Dim newButton As Button
newButton = New Button()
newButton.Location = ... etc...

I think this defines a new object of type Button() called "newButton".

Here is the quesiton ... Can "newButton" be a pointer to an object name?

I want a method that creates a new button with the object name that I pass to the method.

I am not sure how to do this.

Thanks,
David