Ask Experts Questions for FREE Help !
Ask
    katy_white's Avatar
    katy_white Posts: 1, Reputation: 1
    New Member
     
    #1

    Mar 26, 2011, 05:41 AM
    Visual basic quick questionnn about total price
    Basically I'm really stuck on one part of the my coursework which is the total bit. Ive looked everywhere but I still have not found a coding that works. Basically I have 2 combo box's (cboUrban , cboUk) and 2 add buttons for each (btnAdd1, btnAdd2) and a lstTrack box. The user selects a song from each category and adds the song by clicking on add track button for each combo box the song then appears on the lstTrack box where a total has to be displayed. However I can not find a code for this could you please help mee!! Each track costs 1.00

    This is my coding so far for each button

    Public Class frmMusicStars


    Private Sub btnTrack1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTrack1.Click


    If (cboUrban.SelectedIndex.ToString >= 0) Then
    lstTracks.Items.Add(cboUrban.SelectedItem.ToString )

    End If


    End Sub

    Private Sub btnTrack2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTrack2.Click


    If (cboUk.SelectedIndex.ToString >= 0) Then
    lstTracks.Items.Add(cboUk.SelectedItem.ToString)
    End If

    End Sub

Check out some similar questions!

Visual basic [ 1 Answers ]

Dim first As Long Dim second As Long Dim sign As String Dim FirstValueEntered As Boolean Private Sub Command1_Click(Index As Integer) If FirstValueEntered = True Then TextDisplay.Text = TextDisplay.Text & Command1(Index).Caption second = Val(TextDisplay.Text)

Visual basic [ 1 Answers ]

I already finish a very simple calculator,actually it has only four buttons. at first its working fine but when add another feature its not working anymore. What I want to do is when press 1 then press + then press 1 and press + again it should add the first two number get ready to add another...

Visual basic [ 1 Answers ]

How can I disable maximise button of a form but minimise and close button should be enable?


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.