Convert Sting to Control

D

DevilMe

I've got an array of buttons on a form. When one is clicked it sends the
button picture to a picture control and the button's name property is sent to
the picture's tag property plus it disables the the button so it can't be
used a second time. I need to enable this button again though another button
but the tag must be a string.

I've tried this & other thing but...:

Dim Ctrl As Control

Ctrl = picCardN(#).Tag
Ctrl.Enabled = True

When I use a String variable and a message box I see what I want and it's
correct but I get errors all the time when trying to enable the button.
ie. string returns cmdC(#)
 
D

DevilMe

It says Control cmdD(10) not found but when I click on the button in design
mode it is their in the properties window!!! Wiered
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top