change msgbox buttons' label

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • okan
    New Member
    • Feb 2007
    • 7

    change msgbox buttons' label

    Hi friends,

    Is it possible that change msgbox buttons' label. For example, buttons vbYesNo or vbOKOnly but i want to show them in Turkish yes=evet no=hayır ok=tamam i mean i want to change buttons's label like that.

    thanks for tips
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by okan
    Is it possible that change msgbox buttons' label. For example, buttons vbYesNo or vbOKOnly but i want to show them in Turkish yes=evet no=hayır ok=tamam i mean i want to change buttons's label like that.
    I don't think you can change the language for a particular message box, only for Windows as a whole.

    You will probably need to create your own window and use it in place of the MsgBox.

    Comment

    • willakawill
      Top Contributor
      • Oct 2006
      • 1646

      #3
      Originally posted by okan
      Hi friends,

      Is it possible that change msgbox buttons' label. For example, buttons vbYesNo or vbOKOnly but i want to show them in Turkish yes=evet no=hayır ok=tamam i mean i want to change buttons's label like that.

      thanks for tips
      It is very easy for you to make your own messagebox and call it from anywhere in your code. You can use a global variable to store the return value or you can pass the name of the calling form to the message box etc. With a little creativity and research you can do most things that vb does for you.

      You can start here

      Comment

      • TNT
        New Member
        • Feb 2007
        • 48

        #4
        You could create a form with "Fixed Dialog" as the "Form Border Style" property. Then, make a button with "Evet" as the text ang give it the Dialog Result "Yes". Do the same with the "Hayır" button and give it the "No" dialog result.

        Comment

        Working...