Controlling Size of VB5 InputBox
Posted on 1998-06-11
In VB5 the InputBox Function will allow you to display a Title, a Prompt, a Default response, and a screen position.
Is it also possible to control the Height and Width of the InputBox and the Width of the Text Box?
Title$ = "USER INPUT"
Prompt$ = "Enter a Number From 1 to 9"
Default$ = "1"
X = 1000
Y = 1000
Entry = InputBox(Prompt$, Title$, Default$, X, Y)
When this is executed, an input box appears on the screen which is much larger than I would like. The text box where the user is supposed to enter a number from 1 to 9 is wide enough for a 50 digit number! Is there any way to make it smaller? Also is there any way to change the font in the Title, Prompt or Text Box?
If these changes are not possible, then does anyone have some code to simulate this input box in a way that these properties (height, width, textbox width and font) can be controlled?