15,904,497 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Adelebeth (Top 9 by date)
Adelebeth
21-Feb-14 18:37pm
View
After sleeping and going to work, THEN looking at it, I figured it out! I just had to erase it and start fresh. Thank you!!!!
Adelebeth
21-Feb-14 1:01am
View
Hmm ok thank you. I will keep trying I think I need to go to sleep and look at it tomorrow with fresh eyes and less frustration. Will update again then. I appreciate your help!
Adelebeth
21-Feb-14 0:34am
View
I'm sorry if this is "messy" I am still learning.
I just tried this:
decimal calc5YrTotal1 = Convert.ToInt32(label5YearTotalCostAnswerCar1.Text);
decimal calc5YrTotal2 = Convert.ToInt32(label5YearTotalCostAnswerCar2.Text);
if (calc1YearGasCar1 < calc1YearGasCar2)
label5YearTotalCostAnswerCar1.BackColor = Color.Green;
else
label5YearTotalCostAnswerCar2.BackColor = Color.Green;
I got this error:
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format.
I am so deflated.. and tired.. Thank you for trying to help, I'm just stuck..
Adelebeth
21-Feb-14 0:24am
View
I figured out WHAT I can't figure out HOW. I need the value created by
calc5YearCostCar1 = (userEnteredPurchasePriceCar1 + (calc1YearGasCar1 * 5) + (userEnteredInsuranceCar1 * 5) + (userEnteredRepairCar1 * 5));
to be compared to the value of
calc5YearCostCar2 = (userEnteredPurchasePriceCar2 + (calc1YearGasCar2 * 5) + (userEnteredInsuranceCar2 * 5) + (userEnteredRepairCar2 * 5));
so, I was using calc5YearCostCar1 and 2 twice.
What I am having a hard time figuring out, is how do I rename the value I get from
calc5YearCostCar1
to use it in my "if" statement?
Adelebeth
21-Feb-14 0:16am
View
I have been staring at the same code errors for 4 hours now. I think my brain has died. At this point, I have tried for a long time, and I have just changed things and created different errors. I have only been in this class for a couple weeks now, and I think I created something too complex for what I currently know.
Adelebeth
21-Feb-14 0:14am
View
Deleted
?? Do you know how I can fix this?
Adelebeth
21-Feb-14 0:07am
View
I tried changing the name of the second (the one currently "int calc..." but then it's not connected to that calculation anymore. Is there a way to rename it to look at the result of that calculation, and then compare it?
Adelebeth
20-Feb-14 23:57pm
View
I realize this now, I'm not sure how to fix the issue, I need the calculate button to highlight the text as well as use the calculation. How do you suggest I fix this?
Adelebeth
20-Feb-14 23:53pm
View
I removed "int" from both, was that all the changes you made?
I got this error when I ran it: "An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format."
Show More