473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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.
Nov 21 '05 #1
4 1073
Hi,

http://msdn.microsoft.com/library/de...showtopic9.asp

Ken
----------------------
"Eduardo78" <Ed*******@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...
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.
Nov 21 '05 #2
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?

"Ken Tucker [MVP]" wrote:
Hi,

http://msdn.microsoft.com/library/de...showtopic9.asp

Ken
----------------------
"Eduardo78" <Ed*******@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...
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.

Nov 21 '05 #3
"Eduardo78" <Ed*******@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #4
Thanks again.

"Herfried K. Wagner [MVP]" wrote:
"Eduardo78" <Ed*******@discussions.microsoft.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: msnews.microsoft.com | last post by:
Hello! I'm Jim by asp How can show "abc" in textbox when click one botton?
7
by: xtheriaultx | last post by:
i need a textarea that opens a local txt file with the click of a botton. I dotn want a browse one, I just want one that opens a set file, like c:/dot/lol.txt . Ty for the help, ill check on the...
3
by: bobdydd | last post by:
Hi All Is there a way that I could programatically check to see if Microsoft Outlook is installed on the PC. Someone suggested this code, below, but it is version specific. Dim appOutlook as...
2
by: Seigfried | last post by:
I've been reading the Microsoft Press book "Visual Basic .NET Step by Step" (Michael Halvorson). I've noticed something about menu items while reading chapter 4 that I didn't know before. Please...
5
by: Wonder | last post by:
How can I create or use the msgobx to show a message without a default button. The user has explicity to click on the button, so the msgbox closes it. Thanks,
6
by: Bob Darlington | last post by:
I want to use the caption property for fields in a recordset as a condition in a loop. That is, I only want to consider those fields which have captions: For each fld in RecordsetName.Fields If...
2
by: vbaDev | last post by:
Hi. I am using Access 2000 and in my code I'm exporting a table into an Excel file (creating it), then the code needs to export another query into the same file (a new worksheet). So I needed both a...
3
by: ulyashka | last post by:
Hi, I'm new to access. I am trying to troubleshoot an existing form that I have and this is the problem that I'm having. When I click on the botton, I get a new window with a form in it. The top...
2
beacon
by: beacon | last post by:
I have a DAP that I've added a command button to (and by default is set to be coded using vbscript, but I'll use whatever works). The command button uses the onclick method to look at a dropdown...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.