Results 1 to 3 of 3

Thread: MsgBox questions [RESOLVED]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Resolved MsgBox questions [RESOLVED]

    Is it possible when using a MsgBox to have a click event on the 'OK', 'Cancel' buttons or do I just need to make a new form with some command buttons?

    Related to this can you put a working hyperlink in a MsgBox?

    Thanks.
    Last edited by bat711; Jun 2nd, 2005 at 05:05 PM.
    CodeBank: Launch IE

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: MsgBox questions

    Hyperlink? No...

    To see which button was pressed you can use this :

    VB Code:
    1. Dim Result As VbMsgBoxResult
    2.  
    3. Result = MsgBox("Pick something", vbOKCancel)
    4.  
    5. If Result = vbOK Then
    6.     MsgBox "OK pressed"
    7. Else 'elseif Result=vbCancel then
    8.     MsgBox "Cancel pressed"
    9. End If


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: MsgBox questions

    Ok, thanks.
    CodeBank: Launch IE

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