Click here to Skip to main content
13,196,126 members (48,217 online)
Click here to Skip to main content

Tagged as


Posted 31 Jan 2013

How to replace 0 on pressing ON in a calculator

, 31 Jan 2013
Just a few hints here on making your code a little cleaner...protected void btn_power_Click(object sender, EventArgs e){ bool isPowerTurningOn = (btn_power.Text == "OFF"); // This will act as a toggle switch for the button text btn_power.Text = isPowerTurningOn ? "ON" :...



Compare Revision Minor Date Status Editor
3 - publicly available No 31-Jan-13 4:41 Available fjdiewornncalwe
Updates in content. 30 changes had been made.
2 No 31-Jan-13 4:40 Available fjdiewornncalwe
Updates in content. 117 changes had been made.
1 No 31-Jan-13 4:39 Available fjdiewornncalwe


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior)
Canada Canada
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171019.1 | Last Updated 31 Jan 2013
Article Copyright 2013 by fjdiewornncalwe
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid