Create Control with specific name

jithb4u

New member
Local time
Today, 20:44
Joined
Aug 12, 2022
Messages
5
Hello,

Is it possible to create an Image frame to a form with a specific name with vba code?
(eg. when I tried to create image box it created as "Image0". I need it as "ImageFrame100")
 
Dim ctl As Control
Set ctl = CreateControl("Form1", acImage, acDetail, , , , , 1080, 1080)
ctl.Name = "ImageFrame100"
 
Dim ctl As Control
Set ctl = CreateControl("Form1", acImage, acDetail, , , , , 1080, 1080)
ctl.Name = "ImageFrame100"
Thank you very much....
 
All in a days work at AWF...

OP: Is it possible to hang myself?
arnelgp: Yeah, here's how you make the knot.
OP: Oh wow arnelgp, so helpful.
 
offhand, I wonder whether you can add controls in an .accde file, with code? I doubt you could save the changes, but you never know.
 

Users who are viewing this thread

Back
Top Bottom