|
-
Apr 29th, 2011, 09:47 AM
#1
Thread Starter
Lively Member
Adding Controls at Runtime
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|