Search:
Type: Posts; User: Inigo Montoya
Search:
Search took 0.03 seconds.
-
April 4th, 2013, 10:37 AM
I did get this working, thanks for your advice. Here's how I did it in the end:
decimal interestConversion = interestRateMonthly * 12;
txtInterestRate.Text = string.Format("{0:P2}",...
-
April 3rd, 2013, 08:31 PM
Tried this:
string txtInterestRate.Text = String.Format ("{0:P2}.00%", txtInterestRate.Text
It works if I enter something like 12, but if someone enters 12.5 it will display 12.5.00%
Still...
-
April 3rd, 2013, 07:43 PM
I have a form that I am working on, and have a quick question:
The form has the user enter a value for Interest Rate, like 12 for 12%. I need it to format anything entered in that box so that it...
-
March 24th, 2013, 06:03 PM
Ok, so I have gotten further in this, but now it is just translating the last word I enter in the English box. Any general ideas of why this isn't working? I'm guessing I am not loading the...
-
March 22nd, 2013, 10:23 PM
Working on an English to Pig Latin translator. When I click Translate I am getting:
System.Windows.Forms.TextBox.Text: System.Windows.Forms.TextBox.Text:Syst..using System;
Here's the code I...
-
March 16th, 2013, 10:21 PM
Ok, so I have it mostly figured out now, thanks to everyone's help. I declared the array and am using the variable "r" to designate the rows. You can see in the code where I am loading each field...
-
March 15th, 2013, 04:52 PM
I get an error that < cannot be applied to operands of type int
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using...
-
March 13th, 2013, 10:37 AM
Still not really getting this, I just need someone to explain how it's supposed to work and help me integrate it into my code above.
-
March 10th, 2013, 05:05 PM
This is how I loaded input from a form with a basic 5 element array, how would I modify this to enter into a 10x4 array?
for (int i = totals.Length - 1; i > 0; i--)
{ ...
-
March 10th, 2013, 04:57 PM
Ok, I am working on a form that calculates the future value of an investment. I need to add a 10x4 rectangular array (required) and then display the results when the user clicks exit. I am having...
-
March 10th, 2013, 11:40 AM
Thanks again BioPhysEngr, I was able to get it to load correctly now. In addition, I added a sort so it shows the totals in ascending order. I was also required to duplicate the array as a list and...
-
March 9th, 2013, 10:14 AM
Thanks a lot BioPhysEngr, that did help a lot. The only problem I am running into now is that the message box shows the last entered total in the first spot and whatever the last total was in the...
-
March 8th, 2013, 04:51 PM
Been trying some different things and I have this so far, which includes the box to display all the results loaded into the array:
using System;
using System.Collections.Generic;
using...
-
March 8th, 2013, 03:56 PM
I am learning about arrays, and I need to figure out how to enter data from a form into the array. The user enters a subtotal, then the form calculates a discount percentage and amount, and give a...
-
February 4th, 2013, 09:40 AM
You were right Ace, declaring maxInvoice and minInvoice preserved the invoice data from one input to the next. Once I declared them outside the calculate button event, it started keeping track...
-
February 3rd, 2013, 08:08 PM
Doesn't help I'm trying to do this with a head cold...brain is a little fuzzy.
-
February 3rd, 2013, 08:06 PM
I don't expect anyone to write code for me, just looking for outside opinions as well. My classmates in this online course aren't posting any suggestions either, and neither is my instructor. I thank...
-
February 3rd, 2013, 07:02 PM
I haven't gotten as far as loops yet. Here's what I am supposed to do:
Use the Math.Min method to compare each invoice total to a variable that contains the smallest invoice total to that point....
-
February 3rd, 2013, 06:53 PM
I see what you mean Ace. It was suggested I use MaxValue so the correct value is returned the first time. If I had declared it as 0, then the first time an invoice is entered it would always display...
-
February 3rd, 2013, 05:07 PM
The min and max invoice boxes are just displaying whatever the current invoice total is. Still working on what the problem could be.
-
February 3rd, 2013, 04:48 PM
So, with your help I was able to get much further. I declared the variables for minInvoice and maxInvoice. I added the lines of code using the math.min and math.max syntax. I then attached the 2...
-
February 3rd, 2013, 03:25 PM
Thanks for your help. Sorry for not formatting the code as preferred, as I said I'm still quite new to programming. I appreciate your time.
-
February 2nd, 2013, 09:15 PM
I have a form that has people enter an amount, and it calculates a discount for the invoice and displays it, as well as total of all invoices, number of invoices, and average invoice amount. I need...
|
Click Here to Expand Forum to Full Width
|