If you need the value to be persistent even after you close the application, you should store the final value in a database/textfile.
yes Actually I am saving the value to the database then compare the last save value where the button text depends. The button text change but this happens only when I start again the application. What Im trying to do is change the button text without closing
and opening it again. For example I clicked logout, the button text should immediately change to login.
paulalvin
Member
229 Points
246 Posts
Re: Change the Button Text when button was clicked
May 28, 2012 01:16 AM|LINK
yes Actually I am saving the value to the database then compare the last save value where the button text depends. The button text change but this happens only when I start again the application. What Im trying to do is change the button text without closing and opening it again. For example I clicked logout, the button text should immediately change to login.