How can I add items programatically into combo box control during runtime?
I am trying like this.
expcombo.Items.Add(expcombo.Text); But given item is not saved. when I close the form and run the form again.. combo box is not showing that given item.
I changed above statement like this
Messagebox.show(expcombo.Items.Add(expcombo.Text));
Here I am getting a numeric value like 1 even though I entered string value.
Pls somebody help me. I am trying for this from long back
nmakkena
0
Newbie Poster
Recommended Answers
Jump to PostLook, object (application, controls, textbox, combobox, etc...) data saved in machine memory, so when your application closed all its data removed.
To do your scenario, to add an item then close the application, and when you start it again, you find this item, you should have data repository (SQL Server, …
All 3 Replies
Ramy Mahrous
401
Postaholic
Featured Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.