https://learn.microsoft.com/pt-br/dotnet/api/system.windows.forms.application.doevents?view=netframework-4.8.1
Application.DoEvents Method (System.Windows.Forms) | Microsoft Learn
Processes all Windows messages currently in the message queue.
windows formsapplicationmethodsystemmicrosoft
https://help.libreoffice.org/latest/eo/text/sbasic/shared/doEvents.html
DoEvents Function
function