Inputbox in vb6 that is system modal on Win32

Posted on 2007-07-28
Medium Priority
Last Modified: 2012-08-13
I need an Inputbox in vb6 that is system modal on Win32.  Any Ideas?
Question by:quiklearner
  • 2
LVL 12

Expert Comment

ID: 19584023
Think this is what your looking for.

Using the inputbox()


If you need help with it let me know.

LVL 12

Expert Comment

ID: 19584032
LVL 38

Expert Comment

ID: 19585302
quiklearner, there are no system modal dialogs in win32.  Microsoft did not carry that construct over from win16.

If you call MsgBox with the vbSystemModal flag, you will see the problem.  The message box stays topmost, but you can easily switch between applications, and perform actions normally.

If we know a little more about what your application does, we might be able to help further.

Accepted Solution

kevinfigg earned 2000 total points
ID: 19595824
You're best bet is to create a small form that emulates the input box and then use an api to set the form on top of everything else. In a way it's better for your app as you can customise the dialog.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question