In my code, I have this loop, which runs until the user has entered his name and password:
Immediately after that, I fill the menus. But I don't want that before the proper login has taken place.
Following recommendations, I replaced DoEvents by Sleep(0).
As a result, the menu loads prematurely, and more intriguing, the box of a checkbox turns green.
DoEvents will remain.
B4X:
Do While DialogComplete = False
DoEvents
Loop
Immediately after that, I fill the menus. But I don't want that before the proper login has taken place.
Following recommendations, I replaced DoEvents by Sleep(0).
As a result, the menu loads prematurely, and more intriguing, the box of a checkbox turns green.
DoEvents will remain.