MatthewABlack
Member
- Joined
- Oct 3, 2008
- Messages
- 7
- Programming Experience
- 1-3
I'm teaching myself vb.net again after being out of school for a few years. My problem is probably simple although I don't know the correct terminology so it makes it hard to search for a solution. I am making a simple game with picture boxes. I created the variable YellowDrop which is a string. It concatenates a few things to create "Yellow6x1" for example. This is a picture box. I now need the command equivalent to yellow6x1.visible. I cannot just do yellowdrop.visible because visible is not a part of string. Can someone point me in the correct direction? Thank you.
If cbColor.Text = "Yellow" Then
For RowLoop = 6 To txtRow.Text Step -1
YellowDrop = ("Yellow" & (RowLoop) & "x" & (txtColumn.Text))
'****Here is where I need a command that would act like YellowDrop.visible****
Next
End If
If cbColor.Text = "Yellow" Then
For RowLoop = 6 To txtRow.Text Step -1
YellowDrop = ("Yellow" & (RowLoop) & "x" & (txtColumn.Text))
'****Here is where I need a command that would act like YellowDrop.visible****
Next
End If