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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top