Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing the Modalresult of a button on close
#4
(09-28-2023, 06:09 PM)BartKindt Wrote: It is weird, because in the past I have tried this before and then the Buttons's Modalresult would override the Form Modalresult (which it is supposed to..?) and because I cannot set the Button Modalresult during the OnClick, it never worked.

It has always been the case that a Button's ModalResult is just a default. When the Button is clicked, the closure process begins with the Button's ModalResult assigned as the Form's initial ModalResult, but user code has always gotten the final say in whether the Form actually closes and what its final ModalResult would be.

Reply


Messages In This Thread
RE: Changing the Modalresult of a button on close - by rlebeau - 10-02-2023, 05:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)