467,151 Members | 948 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,151 developers. It's quick & easy.

Outputting into a label

Okai, I have a proggram that is used to input names into a combo box, but i need to output them in a lable,

Expand|Select|Wrap|Line Numbers
  1.  Private Sub cboName_Change()
  2.     lblOut = cboName
  5. End Sub
  7. Private Sub cmbAdd_Click()
  8.     cboName = txtAdd
  9.     cboName.AddItem (cboName)
  10.     txtAdd = ""
  11. End Sub
  13. Private Sub txtAdd_KeyPress(KeyAscii As Integer)
  14.     If KeyAscii = 13 Then
  15.     cboName = txtAdd
  16.     cboName.AddItem (cboName)
  17.     txtAdd = ""
  18. End If
  19. End Sub
That is what i have so far someone please tell me how to select a input from the list inside the combo box and show in a lable

also, a quick help on how to save would be helpfull


p.s Sorry this makes little sence
Oct 30 '06 #1
  • viewed: 1039
1 Reply
Expert 8TB
Here's a quickie which might help. Not sure, but this might only work properly if the style of your combo box is "dropdown listbox".
Expand|Select|Wrap|Line Numbers
  1. Private Sub CboName_Click()
  2.   lblOut = CboName.Text
  3. End Sub
Oct 30 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Kathleen Dollard | last post: by
5 posts views Thread by Andrei Pociu | last post: by
13 posts views Thread by Jacek Dziedzic | last post: by
2 posts views Thread by cephelo@gmail.com | last post: by
reply views Thread by Kevin McKinley | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.