Change text on messagebox button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikewin86
    New Member
    • Mar 2010
    • 17

    Change text on messagebox button

    Hello,



    I would like to know how to change the text on the messagebox buttons.

    For example, Yes and No buttons to Do and Don't etc.

    Thanks in advance


    Mike
  • marcellus7
    New Member
    • Oct 2008
    • 33

    #2
    You can create your own dialog box form, and call it instead. On the button click events, just return a boolean yes or no and close the dialog form

    Comment

    • LucasOschip
      New Member
      • Sep 2010
      • 4

      #3
      You can just use the MsgBoxStyle Enum to set the Style.
      Like here:
      MsgBox("Hello", MsgBoxStyle.Abo rtRetryIgnore, "AbortRetryIgno re")
      That would simply set the prompt as "Hello", The style as AbortRetryIngor e, and the title as "AbortRetryIgno re"

      Comment

      • Joseph Martell
        Recognized Expert New Member
        • Jan 2010
        • 198

        #4
        marcellus7 is correct. You would have to create your own form that mimics the functionality of the built-in message box. Windows provides the message box as a built-in shortcut for performing common tasks and as such has only built in certain functionality. To get anything customized you have to define your own form, as far as I know.

        Comment

        Working...