Use the Wait For Front Panel Activity function when you want a VI to wait until a user interacts with the front panel. This function is designed to save system resources but does not give you any feedback about which event occurred.
Use the Event structure when you need to execute different code in response to particular user actions on the front panel, such as a mouse click, keystroke, and so on.