Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,338 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,815 people online right now. Registration is fast and FREE... Join Now!




ComboBox

 
Reply to this topicStart new topic

ComboBox, Add Items in ComboBox from a TextBox

bety_adriana
28 Aug, 2008 - 03:55 PM
Post #1

New D.I.C Head
*

Joined: 28 Aug, 2008
Posts: 1

I want to know how to add an item that has been inserted in a textBox to a ComboBox when I press a command Button. I wrote my code like the one down there but when I run the project for the second time to see if the items have been add it to the ComboBox the items are not there. Please a little help!!!




CODE

Private Sub cmdBirthday_Click()
comboBoxBirthday.AddItem (txtBoxBirthday.Text)
End Sub

User is offlineProfile CardPM
+Quote Post

thava
RE: ComboBox
28 Aug, 2008 - 04:07 PM
Post #2

D.I.C Regular
Group Icon

Joined: 17 Apr, 2007
Posts: 442



Thanked: 18 times
Dream Kudos: 50
My Contributions
hi bety
if you do anything in your application at runtime it is only affected in runtime only
(i.e..)
if you type in a textbox like "hello"
is it there when you run your application second time
no it's not

and also if you want your data still be there store in a database or a file
and retrive it back
User is offlineProfile CardPM
+Quote Post

tanyaacatherine
RE: ComboBox
28 Aug, 2008 - 07:52 PM
Post #3

New D.I.C Head
*

Joined: 28 Aug, 2008
Posts: 1

I took a look at your site and recommend it to my visitors. I agree with you on the importance of becoming valuable in many different areas.This distinction between "combo box" and "drop down list" is sometimes clarified with terms such as "non-editable combo box" (or something similar). Alternatively, some apply the term "combo box" only to controls that allow edits.
-------------------------
Tanyaa
Internet Marketing
drivenwide@yahoo.com
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 08:05AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month