|
-
May 16th, 2011, 02:34 AM
#1
Thread Starter
Junior Member
how to add items in combo box
Dear Sir,
I have created an combo box and added some items if i want to add an other items so how to add these items using textbox kindly do need full
Regards
Satish.S
-
May 16th, 2011, 02:37 AM
#2
Lively Member
Re: how to add items in combo box
Hi,this way:
vb Code:
Private Sub Command1_Click()
Combo1.AddItem Text1.Text
End Sub
If my post was helpful to you, then express your gratitude using Rate this Post.
To understand recursion, you must first understand recursion.
-
May 17th, 2011, 12:05 AM
#3
Re: how to add items in combo box
You can do it in the KeyDown event too.
Code:
Option Explicit
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = (13) Then ' if Enter key is pressed.
Combo1.AddItem Text1.Text
End If
End Sub
<--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
If topic has been resolved, please pull down the Thread Tools & mark it Resolved.
Is VB consuming your life, and is that a bad thing?? 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|