New Dialog Result

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • zacks@construction-imaging.com

    #1

    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?

  • Dennis

    #2
    RE: New Dialog Result

    Suggest creating your own ENUM and returning the result from that.
    --
    Dennis in Houston


    "zacks@construc tion-imaging.com" wrote:
    [color=blue]
    > 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?
    >
    >[/color]

    Comment

    • Cerebrus

      #3
      Re: New Dialog Result

      [color=blue]
      > All. Is it possible to add items to this enumertion?[/color]

      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_Closi ng(...)
      ' Conditions here
      MyResult = TheResult.YesTo All
      :
      :
      End Sub

      HTH,

      Regards,

      Cerebrus.

      Comment

      Working...