1 Replies - 439 Views - Last Post: 18 June 2012 - 07:00 AM Rate Topic: -----

#1 student1981  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-June 12

Do Loop and List Boxes

Posted 18 June 2012 - 12:26 AM

Public Class Form1
    Private Sub exitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exitButton.Click
        Me.Close()

    End Sub

    Private Sub displayButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles displayButton.Click
        'Display correct shipping amount

        Dim zipcodeInt As Integer
        Dim shippingInt As Integer

    End Sub

    Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles fifteenListBox.SelectedIndexChanged
        fifteenListBox.Items.Add("60611")
        fifteenListBox.Items.Add("60234")
        fifteenListBox.Items.Add("56789")
        fifteenListBox.Items.Add("23467")
        fifteenListBox.Items.Add("60543")
        fifteenListBox.Items.Add("60561")
        fifteenListBox.Items.Add("55905")
        fifteenListBox.Items.Add("89567")
    End Sub

    Private Sub twentyListBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles twentyListBox.SelectedIndexChanged
        twentyListBox.Items.Add("50978")
        twentyListBox.Items.Add("78432")
        twentyListBox.Items.Add("98432")
        twentyListBox.Items.Add("97654")
        twentyListBox.Items.Add("20245")

    End Sub
End Class


Could someone please help me what I need to add to do my display shipping button to display $15 or $20 in the text box for specific zip codes?

This post has been edited by Atli: 18 June 2012 - 03:38 AM
Reason for edit:: Added [code]...[/code] tags.


Is This A Good Question/Topic? 0
  • +

Replies To: Do Loop and List Boxes

#2 tlhIn`toq  Icon User is offline

  • Closing in on 5,000
  • member icon

Reputation: 4928
  • View blog
  • Posts: 10,465
  • Joined: 02-June 10

Re: Do Loop and List Boxes

Posted 18 June 2012 - 07:00 AM

Did you mean for this to be in VB6 and not VB.NET?

Help you with... What? You haven't told us what error you are getting.

Quote

what I need to add to do my display shipping button to display $15 or $20 in the text box for specific zip codes?

Is there someone who can better translate to English for you? This is REALLY hard to guess what you are trying to do and what you are asking of the volunteers here.

TextBox has a .Text property. If you want to have a TextBox display "$20" then set the .Text property to "$20"
http://msdn.microsof...ms.textbox.aspx
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1