Results 1 to 5 of 5

Thread: Msgbox Question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517

    Post

    Hello,

    Is there any way to insure that
    the msgbox appears on the top
    of all other forms?

  2. #2
    Guest
    Set the Msgbox as a SystemModal.

    Code:
    MsgBox "No way to escape!", vbSystemModal

  3. #3
    Addicted Member
    Join Date
    Jul 1999
    Location
    Bergen, Norway
    Posts
    143
    or if you just want it to be ontop ofall of your program forms (not other programs)

    Code:
    MsgBox "TADA!", vbModal

    -Lumin

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    Ok thanks...

    But how can I have it be a
    vbYesNo button and on top?

  5. #5
    Guest
    Code:
    Private Sub Command1_Click()
    If vbYes = MsgBox("Do you want to escape?", vbSystemModal + vbYesNo) Then
    MsgBox "Free"
    Else
    MsgBox "Trapped here forever!"
    End If
    End Sub

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