Hello Have tried writing the code but cannot seem to get it to display

I am trying to write a Program that calculates a Bill for a Pizza Shop

Posted 12 October 2009 - 06:12 AM

Hello I hope someone can help me I am trying to write a program that compute the bill for a pizza shop and I cannot figure out what I am doing wrong when I build it there are no errors but when I debug it it will not run I just cannot figure it out so I was hoping someone could help me figure out what I am doing wrong it is being written in Visual Basic 2008 well anyway here is the code.

Re: I am trying to write a Program that calculates a Bill for a Pizza Shop

Posted 12 October 2009 - 08:16 AM

CharlieMay, on 12 Oct, 2009 - 07:04 AM, said:

Well, first off, the following line will produce an error

lstTotal.Items.Add(String.Format(fmtstr, "Total"))
'this should read
lstTotal.Items.Add(String.Format(fmtstr, "Total","",""))
'or something like that to handle the other two fields.

Is this a school project and if so, does it specify what controls are to be used?

If not, a listview would be a better list control for what you are appearing to try to do.

Yes thisis a school project and it is supposed to caculate the number if slices of Pizza, Fries and Soft Drinks now I was p[laying with it a little more and was able to get the dtat to display but for some reason am unable to get it to calculate the form has 3 text boxes for input one button to compute 3 lables and one list box to diplay the qunatity of the items and then the total but that is where I am stuck it will not calculate it at at all. Here take a look.