New Dialog Result

  • Thread starter Thread starter zacks
  • Start date Start date
Z

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?
 
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.
 
Back
Top