473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to add new data to combo box..and make it permanent ?

Private Sub ADD_size_Click()

Dim A As String
A = InputBox("ENTER NEW TYPE")
Combo1.AddItem A
Combo1.ListIndex = Combo1.NewIndex

End Sub
Nov 5 '10 #1
1 1977
Guido Geurs
767 Expert 512MB
This works for me.
Do You mean: after closing and reopening the program ?
Nov 5 '10 #2

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

Similar topics

0
by: Meyer1228 | last post by:
VB6 - We have three data combo boxes with identical properties, each pointing to a different data file. We're using an odbc driver with a 4th gl indexed database. All that is working beautifully. ...
0
by: Andrew | last post by:
Hello, I am trying to create a chart whose underlying query is linked to 2 combo boxes on the same form. I want to pass the values from the combo boxes into the chart query to allow the chart...
1
by: ZZZ | last post by:
int dummy=Convert.ToInt32(das.Tables.Rows.ItemArray.ToString()); MessageBox.Show(dummy.ToString()); this.combo_opNaam.SelectedValue=dummy; ...
1
by: sonu | last post by:
I am working with a window application which will run on every computer on a network. but data will be only one machine on network. i am giving in connection string like.. connectionString =...
4
by: Elena | last post by:
Hi, I am filling in a combobox. I would like to concatenate two fields into the data combo box and display "last name, first name" I tried to displaymember = "employee_last_name" & ", " &...
0
by: UGURMURAT | last post by:
hi i managed to create adoc to link datagird so I see my external access database table inside the data gird. i managed to create a data combo box and list the names of the external document ...
0
by: sunilkds | last post by:
I want to main difference simple Combo box & DataCombo Box @ VB6.0 What is combox.listindex in DataCombo
1
by: sunilkds | last post by:
How to count total number of items in the Data Combo in Vb6.0
1
by: sunilkds | last post by:
I want code for how to clear values in the datacombo at run time. Plz give corect method or solution
4
by: sunilkds | last post by:
I want code for how to clear values in the datacombo box (not combo box) at run time. Plz give corect method or solution
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.