Thank you for your answer erel.
I have made my own color dialog although i have a quetion regarding wait for function.
I am not sure if i should create a new thread its a very small question
I have in my dialog 2 buttons.
Ok and cancel
"Ok" will call the sub from the calling activity. "Cancel" will only close the dialog. So my question is if i call wait for but there won't be a call back will it wait for ever until there is a call back?
Should i call that event also with the cancel button so the wait for will continue ?
Thank you