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

---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?

thanks i figured it out..sorry for the caps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.