Textbox 'remembering' previous entries

  • Thread starter Thread starter almurph
  • Start date Start date
A

almurph

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.
 
..NET 1.1 or .NET 2.0? because 2.0 has something like this already in the
combo box that allows entries like this
 
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.
 
Back
Top