Inputbox in vb6 that is system modal on Win32

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

    Expert Comment

    Think this is what your looking for.

    Using the inputbox()

    If you need help with it let me know.

    LVL 12

    Expert Comment

    LVL 38

    Expert Comment

    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.
    LVL 2

    Accepted Solution

    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

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    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.

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now