0

i USED THIS CODE TO ASSIGN THE BRAND DBS TO A VALUE OF 200

Private Sub xModelComboBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xModelComboBox.SelectedIndexChanged

If xModelComboBox.Text = "DBS" Then

xTotalPriceLabel.Text = "$200,000"

End If

AND THIS CODE TO CALCULATE THE FOLLOWING iNITIAL PRICE=
is the default price for the selected brand and model in 2006.

---hOW TO I ASSIGN A SPECIFIC YEARS TO THE SAME BRAND and join it to the year?????EX---dbs@1983, 84 ETC.

I USED THIS TO DECLARE THE CALCULATIONS
Code:

Private Sub xCalcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xCalcButton.Click

 Dim YearOfMade As Double
 YearOfMade = Me.xSelectyearComboBox.SelectedItem
 Dim InitialPrice As Double 
InitialPrice = Val(xMakeComboBox.Text) + Val(xModelComboBox.SelectedItem) + Val(xSelectyearComboBox.SelectedItem) 

xTotalPriceLabel.Text = InitialPrice
2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by bondgirl21
0

---hOW TO I ASSIGN A SPECIFIC YEARS TO THE SAME BRAND and join it to the year?????EX---dbs@1983, 84 ETC. can explain further?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.