I have a program, where I need to add a new item to a combobox sometimes. I did this with this simple code:
Form1.ComboBox2.Items.Add(TextBox1.Text)but the problem is, everytime I restart the program, it's not there anymore :bad:
How can I add somethings so it will be there the next times I open the program too?
My second question is: how can you create a text file on the location the .exe is? I know how to create one, but I would like the file to be in the same directory as the .exe ... (no mather where it's)
Also, is it possible to create the textfile as a hidden one? and still acces it with VB to write/read?
thanks in advance!


Sign In
Create Account


Back to top









