Emulator: Form events are not processed correctly

?What happens?

"Activated" and "Closed" events are not triggered in the emulator.
The "CloseForm" function is not executed. For this reason, Load events only work once when called for the first time.

During the runtime on a controller, the events are executed correctly.

When does this behaviour occur?
The behaviour occurs when switching from one form to another and using "Activated", "Closed" and "Load" events in the emulator.
 
Which products are affected?
VisiWinNET 6.5.3
        
Short-term measures:
Do not test "Closed" and "Activated" events in the emulator.
Use the "FormChanged" or "FormChanging" events instead of "Activated".
They will be executed correctly in the emulator.
Advantage: The "FormChanged" and "FormChanging" events will only be executed once.
The "Activated" event will also be executed after closing the touch keyboard.
These events are therefore more suitable for executing one-off functions when calling a form.
 
Evaluation/recommendations:
CloseForm deletes the corresponding form completely from the memory.
Therefore, recalling the form will take very long.

For this reason, Close forms should only be used deliberately to have more memory space in the visualisation.

We recommend to use "ShowNew" or "ShowNewHideActive" to change from one form to another.


URL for linking this AKB article: /en-de/go/akb/201500254/1/
森林舞会游戏