G
Guest
Hi
Am new to programming and to this process of asking questions. I believe I
have read all the threads concerning combo box questions but haven't found an
answer to my problem.
I am using "combobox.items.add(combobox.text)" to add an item to the
collection
of the combo box. When the program runs I can see the new item in the combo
box (hi-lited) but when i close the form the new item doesn't stay in the
collection.
I put some items in the CB initially through the collection property.
I have used both the drop down and simple styles but neither retain the new
item in the collection.
In additioin to to reading every help item concerning combo boxes in vb.net,
I have looked at every book I could find in the book store to see if there
was additional code I need to use to save the item in the collection but
can't seem to find anything.
I have tried doing this under the "selected index event" as well as the "key
press" event. I even tried using a button click event.
At first I had the combo box in a group box and then moved it out onto the
form.
I even set up a new solution and only had a combo box on the form but had
the same problem.
I have a suspension that some setting on a form property or another control
or on my set up of vb net is is causing this but I have run out of ideas
where to look.
If this turns out to be something ridiculously simple I apologize, but I do
need help.
Any ideas.
Thans.
Am new to programming and to this process of asking questions. I believe I
have read all the threads concerning combo box questions but haven't found an
answer to my problem.
I am using "combobox.items.add(combobox.text)" to add an item to the
collection
of the combo box. When the program runs I can see the new item in the combo
box (hi-lited) but when i close the form the new item doesn't stay in the
collection.
I put some items in the CB initially through the collection property.
I have used both the drop down and simple styles but neither retain the new
item in the collection.
In additioin to to reading every help item concerning combo boxes in vb.net,
I have looked at every book I could find in the book store to see if there
was additional code I need to use to save the item in the collection but
can't seem to find anything.
I have tried doing this under the "selected index event" as well as the "key
press" event. I even tried using a button click event.
At first I had the combo box in a group box and then moved it out onto the
form.
I even set up a new solution and only had a combo box on the form but had
the same problem.
I have a suspension that some setting on a form property or another control
or on my set up of vb net is is causing this but I have run out of ideas
where to look.
If this turns out to be something ridiculously simple I apologize, but I do
need help.
Any ideas.
Thans.