Results 1 to 16 of 16

Thread: Modeless MessageBox

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Is there any way to create a modeless MessageBox?

  2. #2
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768

    msgbox

    The msgbox is modeless. You can get out of it on till you click on the available options

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    What I am asking is that when you show a message box, the execution stops at that point untill you respond to the message box? Is there any way to show a messagebox which will allow the execution to continue, something like when you show a form.

  4. #4
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Try creating a custom form to act as a msg box.

    BTW The msgbox is modal.
    I am become death, the destroyer of worlds.
    mail:vlatkovr@hotmail.com

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  5. #5
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    I am not sure which thread, but there is a way to continue execution while a msgbox is displayed.

  6. #6
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Try the setwindowlong API and
    • Message-Box Modality
    • MB_APPLMODAL The user must respond to the message box before continuing work in the current window. However, the user can move to the windows of other applications and work in those windows. The default is MB_APPLMODAL if neither MB_SYSTEMMODAL nor MB_TASKMODAL is specified.

    • MB_SYSTEMMODAL All applications are suspended until the user responds to the message box. System-modal message boxes are used to notify the user of serious, potentially damaging errors that require immediate attention and should be used sparingly.

    • MB_TASKMODAL Similar to MB_APPLMODAL, but not useful within a Microsoft Foundation class application. This flag is reserved for a calling application or library that does not have a window handle available.
    I am become death, the destroyer of worlds.
    mail:vlatkovr@hotmail.com

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Vlatko, all that you have said will make the messagebox modal. How to make it modeless?

  8. #8
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768

    Try this link

    Here is an example of a progress bar runing and the background is still running a process. I hope that this helps.
    http://<br /> <a rel="nofollow" hre....htm</a><br />

  9. #9
    Lively Member
    Join Date
    Mar 2001
    Location
    Brooklyn, NYC
    Posts
    112

    Thumbs down URL...........

    Hey,the above URL is not working......
    Visual Basic Programmer.

    VB,ASP,VBscript,JavaScript,Oracle,Developer 2000,ADO,HTML, C#, VB.NET, ASP.NET....

  10. #10
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768

  11. #11
    Lively Member
    Join Date
    Mar 2001
    Location
    Brooklyn, NYC
    Posts
    112

    Red face Nope...

    Hey,once again.It is displaying the following message.

    Page URL Not Found!!

    The requested page does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it.

    Type your search term above instead or try to click here
    to let us help you find web pages you are looking for!
    Visual Basic Programmer.

    VB,ASP,VBscript,JavaScript,Oracle,Developer 2000,ADO,HTML, C#, VB.NET, ASP.NET....

  12. #12
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768

  13. #13
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768

    [b]:cool: Did this help :cool:[/b]


  14. #14
    Lively Member
    Join Date
    Mar 2001
    Location
    Brooklyn, NYC
    Posts
    112

    Thumbs up Yes

    Yes :-D :-D
    Visual Basic Programmer.

    VB,ASP,VBscript,JavaScript,Oracle,Developer 2000,ADO,HTML, C#, VB.NET, ASP.NET....

  15. #15
    Addicted Member
    Join Date
    Jan 2001
    Posts
    142

    non modal message box

    Just wanted to say that I found that the
    "messagebox" api is not modal.
    I had the same problem with "msgbox" because it was modal...

    Garrett

  16. #16

    Thread Starter
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    If you have already done it, could you post the code?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width