$ 0 0 Hi Pedro, I ran your code.I get this error message:You cannot cast a button to an edittext.????Button's caption maybe?Thanks