lock program like msgbox or inputbox

Is there a method to lock a program from accepting other
input like when using a msgbox or inputbox?

I'd use an inputbox, but I need extra options, so I have to use a custom form.  However, I'd like to stop the rest of the program from accepting any other input until an ok or cancel button is pressed.

Who is Participating?
kamallConnect With a Mentor Commented:
You can use a normal VB form with a text box or whatever you like, and show it modally:

MyForm.Show VbModal

BTW, you must disable the close button (x button in the top right corner of the form) so the user will not be able close the form. This can be done from the form's properties (ControlBox = False).
All Courses

From novice to tech pro — start learning today.