Updating A List Box Items When Clicking On A Button From Another Form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adalyc
    New Member
    • Nov 2007
    • 1

    Updating A List Box Items When Clicking On A Button From Another Form

    I NEED SOME GUIDENCE WITH UPDATING A COLLECTION OF ITEMS IN A LIST BOX WHEN THE USER CLICKS ON A BUTTON FROM ANOTHER FORM,, i HAVE LISTED THE PROBLEM PARTIALLY. I fIGURED OUT MOST OF THE PROBLEM EXCEPT FOR THE UNDERLINED PART. pLEASE HELP. thIS IS VISUAL BASIC 2005

    An airplane has 15 rows (numbered 1 through 15), with six seats (labeled A, B, C, D, E, and F) in each row. . When the agent clicks on one of the text boxes, a second form containing four option buttons labeled Unoccupied, Regular, Low Calorie, and Vegetarian appears. Clicking on any radio button closes the second form and updates both the text box and the row for that seat in the list box.

    HERE IS SOME OF THE CODE IVE CAME UP WITH. i TRIED EVERYTHING AND NOTHING SEEMS TO UPDATE BOTH THE LIST BOX AND READ ONLY TEXT BOXES I CREATED. .



    Dim secondform As New frmassignseat
    secondform.Show Dialog()

    veggie = secondform.vegg ie
    regular = secondform.regu lar
    lowcal = secondform.lowc al
    unoccupied = secondform.unoc cupied
Working...