blueberrys42's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
Members
Active Posts:
16 (0.01 per day)
Joined:
14-October 10
Profile Views:
1,577
Last Active:
User is offline Apr 03 2014 10:59 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   blueberrys42 has not set their status

Posts I've Made

  1. In Topic: Listbox problem

    Posted 3 Apr 2014

    owh sorry. I tried the double.TryParse and now my program work well. Thanks

    private void btnCalculateCart_Click(object sender, EventArgs e)
            {
                while (i < listTotalPrice.Items.Count)
                {
                    str = listTotalPrice.Items[i++].ToString();
    
                    if (double.TryParse(str, out total))
                        grandTotal += total;
    
                }
    
                txtGrandTotal.Text = "RM " + grandTotal.ToString("#.00");
            }
    
  2. In Topic: Listbox problem

    Posted 2 Apr 2014

    thanks for your advice. i just put try catch and now my program work :)

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
KL

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

blueberrys42 has no profile comments yet. Why not say hello?