Link to home
Start Free TrialLog in
Avatar of hc_gupta
hc_gupta

asked on

How will I get the saved history of textbox (text which is previously entered) in vb.net ?

How will I get the saved history of textbox (text which is previously entered)  in vb.net ?

Thanks in advance
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

u can use any available .Net data structure to store previous textbox values, like List, Queue, etc.
i'd create class like this:
    public class TextHistory
    {
        private List<string> history = new List<string>();
        public void Add(string text)
        {
            history.Add(text);
        }
        public IList<string> History
        {
            get { return history.AsReadOnly(); }
        }
    }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial