473,395 Members | 1,468 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,395 software developers and data experts.

New Dialog Result

I am trying to design a custom messagebox type form that has Yes to All
and a No to All buttons in addition to Yes, No and Cancel. I would like
to return which button was clicked using the standard system dialog
result. But there are no dialog result values for Yes to All and No to
All. Is it possible to add items to this enumertion?

Feb 24 '06 #1
2 1161
Suggest creating your own ENUM and returning the result from that.
--
Dennis in Houston
"za***@construction-imaging.com" wrote:
I am trying to design a custom messagebox type form that has Yes to All
and a No to All buttons in addition to Yes, No and Cancel. I would like
to return which button was clicked using the standard system dialog
result. But there are no dialog result values for Yes to All and No to
All. Is it possible to add items to this enumertion?

Feb 25 '06 #2
All. Is it possible to add items to this enumertion?


A one word answer would be "No". I don't know if this is the best method,
but this is how I did it in a similar situation :

In the Dialog Form :
--------------------
Dim MyResult as TheResult

Public Enum TheResult As Integer
Yes
No
YesToAll
NoToAll
End Enum

Private Sub frmDialog_Closing(...)
' Conditions here
MyResult = TheResult.YesToAll
:
:
End Sub

HTH,

Regards,

Cerebrus.

Feb 25 '06 #3

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

Similar topics

5
by: Fred | last post by:
Hi, I'd like to turn a command-line script into a Windows GUI app using the native widgets so as to reduce the size of the binary (ie. no QT, wxWidgets, et al.) I came up with the following...
1
by: AMDRIT | last post by:
'System.Runtime.InteropServices.SEHException' occurred in system.windows.forms.dll is generated when I use "My Custom Dialog". Any ideas what I could be doing wrong? Basically, I wanted to...
2
by: Dennis C. Drumm | last post by:
This is a restatement of an earlier post that evidently wasn't clear. I am building a custom MessageBox dialog that has, among other things, a few new button options (yes to all, no to all, etc.)...
2
by: steve bull | last post by:
I have built what I think should be a dialog box. It contains 4 tabbed panes for generating a range of colors. Each tabbed pane consists of a panel with all the widgets on them including the OK and...
4
by: ronenk | last post by:
I have this code to load an authentication form once my app is loaded. I want the authentication form to be closed if a user is authenticated successfully and to give the option to close app on his...
5
by: pswulius | last post by:
Hey everyone, for reasons I can't explain quickly, I'm developing a completely custom OK/OK_CANCEL dialog, though I think many people would benifit from this knowledge. I basically need to...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
3
by: =?Utf-8?B?TWF0?= | last post by:
Hi, I am trying to initiate a dialog box in an ASP web page. The code does some processing and checks a few things, then if all is OK, asks the user to confirm. For this I need it to pop up a...
2
by: 00steve | last post by:
Hi, I am using a confirm dialog to display a list of altered records when the user submits changes. I would like it displayed in the following format: Student ...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.