Loading

saving data in combo box at runtime

5 posts / 0 new
Last post
Offline
Joined: 01/09/2010
saving data in combo box at runtime

hii,
i am having some problem in saving the data in combo box at runtime.
i am taking the input from a text box to add item in my combo box, it is saving the data for the same time but when i restart my program these added items are removed automatically..
what to do to add the data permanently??????
if we can do it by making another database then what can be the code?
can we make an MS ACCESS file into which we can add item through text box and then fetch that item list using dataenvironment, etc..
please reply........

cidfrey's picture
Offline
Joined: 12/17/2009
On the properties of the

On the properties of the Combo Box search for the "List" put your necessary this there

Web / System Developer
Contacts :
09327081978
recca_flame05@yahoo.com >>> Facebook/YM
ICCT Colleges Cainta Rizal

Offline
Joined: 01/09/2010
but dear i want it to be done

but dear i want it to be done at run time.
i have made another page to add the item, as soon as we submit it, it should add item to comobox, permanently

reply ASAP

Offline
Joined: 01/09/2010
if we can do it by making a

if we can do it by making a text file then what can be the code......
how to add data at runtime to that file and then adding these items to combo box

reply ASAP

Anonymous
save combo txt

'SAVE-----
Dim i as interger

Open "C:\test.txt" for output as #1

For i = 1 to combo1.listcount

Combo1.listindex = i

Print #1, combo1.text

close #1

'GET------
Dim txt as string

Open "C:\test.txt" For Input As #1

Do While EOF(1) = False

Line Input #1, txt

combo1.Additem txt

Loop

Close #1

From Denmark

hhmm@ofir.dk

Pages

Add new comment

Filtered HTML

  • You may insert videos with [video:URL]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.