Would like to know how to set the default botton on a msgbox to no

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been trying to change the default accept botton from a VB app.
messagebox to No or Cansel instead of yes or ok, which are the default accept
bottons.


thanks for any suggestions.
 
Thanks a lot Ken for the link It worked perfect,

what if I would like to have "Si"/"No" instead of "Yes"/"No" for the message
box bottons? Is it possible to change de bottons caption?
 
Eduardo78 said:
what if I would like to have "Si"/"No" instead of "Yes"/"No" for the
message
box bottons? Is it possible to change de bottons caption?

There is no managed way to do that. You can utilize a Win32 dialog hook to
catch the creation of the buttons and replace their caption. However, if
you installed the .NET Framework language pack in the desired language the
captions should be shown in this language automatically.
 
Thanks again.

Herfried K. Wagner said:
There is no managed way to do that. You can utilize a Win32 dialog hook to
catch the creation of the buttons and replace their caption. However, if
you installed the .NET Framework language pack in the desired language the
captions should be shown in this language automatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top