|
-
Mar 21st, 2008, 01:41 PM
#1
Thread Starter
Hyperactive Member
Convert String to Control
Is it possible to convert a string into a control?
Dim Ctrl as string = "DataGridView"
Dim Index as integer = "1"
Dim g as DataGridView = DirectCast(Ctrl & Index, DataGridView)
and then access the properties of the Grid...
g.BackColor = Color.Red
g.Left = 3
etc.
I'm pretty sure it's possible but nothing I've tried works.
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
|