Multi line imputbox?
i need to make a multi line imputbox without a new form
A = ***
# 1 Re: Multi line imputbox?
not possible unless you subclass the inputBox. Doable, but IMHO a new form is a much better choice (and less hussle, in five minutes it is done...)
Marco
mstraf at 2007-11-11 17:27:08 >

# 2 Re: Multi line imputbox?
i need it to work like a imputbox like example and it waits till it gets something
if hard to explain send an example file
# 3 Re: Multi line imputbox?
Just show your form that you make as InputBox. This form will be waiting util the user close this form or click the OK or Cancel button. You just need to write unload in the click events of both Ok and Cancel buttons.Then return value of textbox of your form to parent form... Try it..
Sync at 2007-11-11 17:29:06 >

# 5 Re: Multi line imputbox?
you can also do this:
let's say your form is named frmInput and your main form is frmMain
after coding the OK and Cancel Buttons (cancel makes textbox = "", ok = input
Public Function InputBx(Cap as String)
'this makes frmInput a Modal, to frmMain
frminput.show 1, frmMain
frmInput.label1.caption = Cap
Inputbx = frmInput.text1.text
End Function
(You can also edit this code slightly, where you declare the function, to have an optional value for variable Txt, and if len(txt) > 0 then InputBx.text1.text = txt if you want to have this option as well, to make it exactly like the inputbox function)
Now when you need your new input box window... you have a simple function to call, very similar to the original...
label1.caption = InputBx("What do you want to say?")