By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,062 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

Outputting into a label

P: 5
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
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,434
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.