sorry morovia... still the same problem... endless loop isn't the solution. If iam using this method i got then a major problem. Other events like keypressed would not be recognized. This is NOT a processor efficient way of doing it. Seems like i need a seperate thread... i couldn't find anywhere handler or something like an interrupt which tells the dialog ...