How do you set a textBox.text value on exit?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How do you set a textBox.text value on exit?

  1. #1
    Join Date
    Feb 2011
    Posts
    13

    How do you set a textBox.text value on exit?

    How do you set a textBox.text value on exit?

    I would like to make the user defined textbox value saved as the value of the textbox for the next time the form is opened

    Is there another way to do this?

  2. #2
    Join Date
    Sep 2013
    Location
    Wisconsin
    Posts
    5

    Re: How do you set a textBox.text value on exit?

    I had to do this once before. I set a registry value on TB exit, and read it on TB entry. I'm sure there is a cleaner way to do it, but it fit the bill for my project. The ultimate benefit was holding the value after the application is closed.

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,473

    Re: How do you set a textBox.text value on exit?

    Are trying to save the value when the program exits and starts back up or when keeping the program open and closing and opening the form?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center