CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: MsgBox

  1. #1
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    MsgBox

    Is there a way to use MsgBox without having the MsgBox hold the computer but rather just show the box and continue on without the necessity to click the OK Button. This would be handy when develoving code.
    73 RSH


  2. #2

    Re: MsgBox

    witch kind of msgbox is? how the user can continue?

    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  3. #3
    Join Date
    Aug 2001
    Location
    New York, USA
    Posts
    169

    Re: MsgBox

    just add a timer - to close the form and a form - no OK button or anything. just a simple form with some labels for displaying information (also, add DOEVENTS to run the program while the timer is counting down). It works like a msgbox except there's no OK button and it doesn't hold/pause the computer.

    [email protected]

  4. #4
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Re: MsgBox

    Yes this would work. So would a TextBox or a Label
    and we have used these,but I cant believe that the convenience of a MsgBox which would leave a message on the screen as the computer went through certain code has been overlooked. This is for developing code particularly.
    73 RSH


  5. #5
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: MsgBox

    'add reference to Windows Scripting host Object model

    Dim wshShell As New IWshShell_Class
    Dim lngReturn As Long
    Dim intSeconds2Wait As Integer
    intSeconds2Wait = 1
    lngReturn = wshShell.Popup("Place Your Text Here", intSeconds2Wait)



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  6. #6

    Re: MsgBox

    ...If I undestand do U wnat a msgbox that is not blocking for the procedure... a warning?
    if it is right... why don't use a logfile... or a listbox... or any other control in witch U signal your warning...
    In my opinion a msgbox is by definition a blocking message...



    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

  7. #7
    Join Date
    Oct 2000
    Location
    Upstate NY
    Posts
    249

    Re: MsgBox

    True, one can use any number of controls to print out what is going on in the program but MsgBox is so easy to use and requires no object. It would be Ideal for momentary use while debugging code.
    Oh Well! guess I'll just have to click the OK Button. 73 RSH


  8. #8

    Re: MsgBox

    ...but if u want have a dbug windows withjout use on object U can use debug object.

    debug.print "pippo"

    so u can write in immediate windows.

    in compile time I think that vb ignore the interaction with debug object... by the ay u can use "find and replace" before compile and change "debug" into "'debug"

    hi,brt


    <center>
    <HR width=80%>
    <img src='http://web.tiscali.it/bertaplanet/im...ertaplanet.gif'>
    </center>

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

Featured