john19
January 11th, 2010, 02:46 PM
Im new to VB.net and doing a project for college work.
Basically, I have combo boxes that have different computer components.
Here is part of the code for you to understand:
Code:
With cboCPU
.Items.Add("Intel Core i7-920 Bloomfield 2.66GHz Quad core")
.Items.Add("Intel Core 2 Duo E8400 Wolfdale 3.0GHz Dual Core")
.Items.Add("Intel Core 2 Quad Q8200 2.33GHz Quad Core")
.Items.Add("AMD Phenom II X4 965 Black Edition Deneb 3.4GHz Quad core")
End With
The problem im faced with is how to assign a cost to each of these so that i am able to calculate the total. If the user selects the first item display the cost in sub total1 for example.
I looked on google and found out about multi columns in a combo box but the other problem is I cant just add code I dont understand because I have to explain what each part of the code is doing.
Help would be much appreciated because im faced with brick wall at the moment.
Basically, I have combo boxes that have different computer components.
Here is part of the code for you to understand:
Code:
With cboCPU
.Items.Add("Intel Core i7-920 Bloomfield 2.66GHz Quad core")
.Items.Add("Intel Core 2 Duo E8400 Wolfdale 3.0GHz Dual Core")
.Items.Add("Intel Core 2 Quad Q8200 2.33GHz Quad Core")
.Items.Add("AMD Phenom II X4 965 Black Edition Deneb 3.4GHz Quad core")
End With
The problem im faced with is how to assign a cost to each of these so that i am able to calculate the total. If the user selects the first item display the cost in sub total1 for example.
I looked on google and found out about multi columns in a combo box but the other problem is I cant just add code I dont understand because I have to explain what each part of the code is doing.
Help would be much appreciated because im faced with brick wall at the moment.