943,740 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 533
  • VB.NET RSS
Sep 24th, 2008
0

Assigning Items From List Box to a Button...

Expand Post »
hello guys, i need help assigning details in a listbox to a button, therefore changing the buttons color....any idea...i manage to do something here....
VB.NET Syntax (Toggle Plain Text)
  1. PListBox1.Items.Add("Customer Name" & ControlChars.Tab & _
  2. "Booking Date" & ControlChars.Tab & _
  3. ControlChars.Tab & "Booking Time")
  4.  
  5. PListBox1.Items.Add(Bcusname1.Text & ControlChars.Tab & _
  6. ControlChars.Tab & ControlChars.Tab & Bdate1.Value & ControlChars.Tab & _
  7. ControlChars.Tab & Btime1.Value)
  8. If PListBox1.Items.Count > 0 And status1 = "Available" Then
  9. If tableno = 1 Then
  10. MsgBox("You Have A Table " & Bcusname1.Text & " ,Your table Number is 1,please Take Your Seat...")
  11. PListBox1.Items.Clear()
  12. End If

how do i assign it to 30 buttons(accepts new data only if the status1 is available)??....thank you in advance for your help...
Reputation Points: 10
Solved Threads: 0
Light Poster
gopi17 is offline Offline
39 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: To find out macros in an excel sheet using VB.NET
Next Thread in VB.NET Forum Timeline: save to Database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC