About Brandon Drake Expertise I can answer questions regarding the Graphics object, file access, general optimization, printing (on paper), user controls, program mathematics, the registry, creating macros, processes, and fundamental or basic questions. I have made a few asp.net pages but I do not know the language extensively. I have not done much work with databases but I have created my own database systems.
Experience I have been programming with visual basic for 6 years. In all I have written programs in about 8 programming languages, although, I only know about 3 well. I have written a few applications but mainly I like to write programs for fun.
Question "When I write in Microsoft Visual basic.net
combobox1.Items.Add(TextBox1.Text)
it adds an item to the combobox
then when I end the program then open it again
I found it return to the previous state
How can I keep the added item?!!!"
Answer Khalil,
First, when you use the Add() method at runtime the changes to a combo box are not supposed to be saved.
If you want to save the changes so that the next time you open the program the combo box has the same items, you will have to save the items in a file or in the windows registry.
That is too large of a topic to cover, so from here you will have to look up those topics in a book to figure out how to save the list.