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

Join 132,393 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,239 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
post 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

Go to the top of the page

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


D.I.C Regular

Group Icon
Joined: 17 Apr, 2007
Posts: 424



Thanked 17 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

Go to the top of the page

tanyaacatherine
post 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

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/22/08 07:17AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month