Page 1 of 1

Programming Question (Visual Basic 2010)

PostPosted: Tue Aug 24, 2010 3:05 am
by (TKC) Slevin
How do you 'remember' the items of a combo box after you close the form (calling the form_closed)?
ie if you add custom items to a combobox, the next time you open the form it will save those new items along with the original?

I know how to use the My.Settings thing for strings from textboxes when calling the FormLoad and FormClosed Subs, but cant figure out how to do this for a range of items.

Possible ways of going around this are to:
-create an array and keep a track of each item (but i dont know the size that it will get to
-everytime i close the form, create a text document to keep a track of all items the copy all items next time it loads (but this is a problem cause i dont want to keep creating new files, plus have multiple combo boxes that i dont want a txt file for each)

Anyone with programming experience please help.

Re: Programming Question (Visual Basic 2010)

PostPosted: Tue Aug 24, 2010 7:14 pm
by (TKC)-o]T3[o
Sorry.. while I am a programmer I don't know VB at all.. good luck.

Re: Programming Question (Visual Basic 2010)

PostPosted: Tue Aug 24, 2010 11:37 pm
by (TKC) Slevin
(TKC)-o]T3[o wrote:Sorry.. while I am a programmer I don't know VB at all.. good luck.

Any ideas with other languages?

Im using visual studio 2010, and its not the same Visual Basic i remember from school (6.0)
The syntax is improved greatly.

I think Visual Basic now is a hybird, containing several new functions and classes from C/C+/C#
(I dont remember using Try statements, or even having the whole main be called a class in the old VB6)

Any suggestions in related languages will be appreciated.

Re: Programming Question (Visual Basic 2010)

PostPosted: Tue Aug 24, 2010 11:59 pm
by (TKC)-o]T3[o
No.. i'm a web programmer.. PHP, Javascript, stuff like that. I don't have a background in full blown languages like C.