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

Thread: close msgbox

  1. #1
    Join Date
    Jul 2001
    Location
    maharashtra,india
    Posts
    181

    close msgbox

    hi gurus
    i am firing an error msg through msgbox
    now i want to close msgbox automatically if user dosent clicks on "ok" button 4 2 seconds
    how can i do this


  2. #2
    Join Date
    Jun 2001
    Posts
    44

    Re: close msgbox

    make your own msgbox dialog window. Add timer. call in timer , unload me


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

    Re: close msgbox

    'add reference to Windows Scripting host Object model

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



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

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