Home All Groups Group Topic Archive Search About
Author
24 Feb 2006 4:42 PM
zacks
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?

Author
25 Feb 2006 12:45 AM
Dennis
Suggest creating your own ENUM and returning the result from that.
--
Dennis in Houston


Show quoteHide quote
"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?
>
>
Author
25 Feb 2006 1:35 PM
Cerebrus
> 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.