09-28-2023, 06:09 PM
Indeed.
If I ignore the Button's Modalresult completely and manually set the Form modalresult, then it actually works.
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.
Now I wrote a test program, and yes, it does work if I set the *Form* Modalresult in the OKBtn OnClick event, and the OKBtn Modelresult does NOT override it.
If I ignore the Button's Modalresult completely and manually set the Form modalresult, then it actually works.
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.
Now I wrote a test program, and yes, it does work if I set the *Form* Modalresult in the OKBtn OnClick event, and the OKBtn Modelresult does NOT override it.