473,508 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is it possible to make custom buttons in a message box?

283 Contributor
Hello everyone,

I was wondering if its possible to make custom buttons in a message box?

For example instead of the normal vbOKCancel is there a way to change the buttons to say anything I choose?

I have a feeling its not possible, but it never hurts to ask.


Thanks for the help

slen :D
Dec 4 '10 #1
6 8870
mshmyob
904 Recognized Expert Contributor
Hello Slenish,

I don't believe you can.

Usually to make a custom dialoge box you can just create a new form and set it to Modal and remove all the navigation buttons etc. and put whatever you want.

cheers,
Dec 4 '10 #2
NeoPa
32,557 Recognized Expert Moderator MVP
Mshmyob is absolutely correct. That is the situation, as well as the typical solution to it.
Dec 5 '10 #3
slenish
283 Contributor
Thank you mshmyob, and NeoPa,

Yeah i had a feeling that might be the answer.

thanks again :D
Dec 6 '10 #4
pod
298 Contributor
You can always cheat ... instead of using a message box why don't you call a form where you can write whatever you want on your buttons, it looks better too ;)


oh, I just noticed that mshmyob answered that ... Damn he's good!
Dec 7 '10 #5
patjones
931 Recognized Expert Contributor
Hi,

I see that this question is already answered to your satisfaction (and it is the best approach to your problem); however I would point out that through the use of some Windows API calls what you originally asked might be possible. I have seen similar tasks accomplished but it requires a great deal of esoteric code (code that I certainly don't understand), and definitely requires more effort than simply designing your own modal form.

Just my $0.02!

Pat
Dec 7 '10 #6
ADezii
8,834 Recognized Expert Expert
As a side note, you can 'Spruce Up' your Message Boxes to a limited extent.
http://bytes.com/topic/access/insigh...-message-boxes
Dec 7 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3936
by: geert | last post by:
The Msgbox is always centered on the screen. Does anyone know how i can manage it to move the Msgbox to a corner of the screen. G.
2
3778
by: douh | last post by:
In a customer form I have a field, cust_mess that is popluated with information that will be displayed when an invoice is generated. Obviously this info is customer specific. Ie. customer Tommy...
15
2701
by: bill salkin | last post by:
I'd like to create a custom error handler like this in VB.NET: .... try ... Throw ("Lender Name not in table") .... catch ("Lender Name not in table")
3
2317
by: DC Gringo | last post by:
Hi, I'm trying to use a custom action to modify a database (rather than create one) using the VS.NET '03's help example called "Custom Action to Create Database During Installation". I've made...
15
2118
by: Jeff Mason | last post by:
Hi, I'm having a reflection brain fog here, perhaps someone can set me on the right track. I'd like to define a custom attribute to be used in a class hierarchy. What I want to do is to...
0
1930
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
0
934
by: hellboss | last post by:
Hi ! im work in vs05 asp.net , i would like to use a custom msgbox where i can attach my icon. LIke the Critical and information icon in the usual msgboxs, or else can we Change the icon of existing...
0
917
by: bobneedshelp | last post by:
Is it possible through an install to run a script to disable a service and then install the files in VB.NET? I've tried using an installer class with the custom actions and that is not working....
2
19404
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
2897
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7067
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...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3201
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.