Home All Groups Group Topic Archive Search About

Textbox 'remembering' previous entries

Author
5 Apr 2006 5:55 PM
almurph@altavista.com
Hi,

   How do I make a textbox remember previously entered data? You know,
like the "Address" field in the Internet Explorer browser. This
remembers previously entered URLs and drops them down...
   How do you code this?

   Any suggestions/comments/code-samples much appreciated.

With thanks
Al.

Author
5 Apr 2006 6:57 PM
Brian Henry
..NET 1.1 or .NET 2.0? because 2.0 has something like this already in the
combo box that allows entries like this

<almu***@altavista.com> wrote in message
Show quoteHide quote
news:1144259702.678440.302740@z34g2000cwc.googlegroups.com...
> Hi,
>
>   How do I make a textbox remember previously entered data? You know,
> like the "Address" field in the Internet Explorer browser. This
> remembers previously entered URLs and drops them down...
>   How do you code this?
>
>   Any suggestions/comments/code-samples much appreciated.
>
> With thanks
> Al.
>
Author
6 Apr 2006 1:51 AM
Cerebrus
Hi Al,

The obvious answer would be to store the data (entries) somewhere.

If this functionality is needed even after the program is restarted,
then you would need to serialize it to a file, or store all entries in
the registry perhaps.

If, however, you need to persist such functionality only till the
program is running, then you might consider storing it in an arraylist.

HTH,

Regards,

Cerebrus.
Author
6 Apr 2006 8:29 AM
Peter Macej
You may try Dynamic AutoComplete Tool
http://www.lamarvin.com/dact_default.asp

--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code