From advanced tab on the frame properties:
- Code: Select all
LoadControl TextBoxObject(2)
TextBoxObject(2).move 218*15, 251*15, 304*15, 26*15
TextBoxObject(2).visible = True
TextBoxObject(2).Font = "Comic Sans MS"
TextBoxObject(2).Font.size ="12"
TextBoxObject(2).Forecolor = RGB (255,255,255)
TextBoxObject(2).backcolor = RGB(128,64,0)
Add a hotspot (button) for the user to click on to capture the value of the textbox and store it in a (variant) variable:
Button advanced tab:
- Code: Select all
MyVariable = TextBoxObject(2).Text
Note: if you want more than one textbox, increment the index in the TextBoxObject(index)
Warning! You won't see the textbox until you run it.