Send a message to form and function