Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to finish the pendign input remaining last time?

How to finish the pendign input remaining last time?

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanyexian
    wrote on last edited by
    #1

    Hi,everyone! I have some difficuties in my project. There are a lot of controls such as textbox and combobox in project, my question is: if I just input some values (not all) into these controls and then close the application; when I open the application next time, I want these controls could shown with values that I inputed last time. What should I do to achieve it?Please give me some suggestions, thank you!

    L 1 Reply Last reply
    0
    • S sanyexian

      Hi,everyone! I have some difficuties in my project. There are a lot of controls such as textbox and combobox in project, my question is: if I just input some values (not all) into these controls and then close the application; when I open the application next time, I want these controls could shown with values that I inputed last time. What should I do to achieve it?Please give me some suggestions, thank you!

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      You'd have to save the available data somewhere before the app closes (a FormClosing event could help); and restore it when your app runs again (e.g. in a Form.Load event). Somewhere could be one or more files, or a database. I suggest you read a couple of articles here on CodeProject, at best you might come up with some functional search terms that match or come close to your application domain. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      S 1 Reply Last reply
      0
      • L Luc Pattyn

        You'd have to save the available data somewhere before the app closes (a FormClosing event could help); and restore it when your app runs again (e.g. in a Form.Load event). Somewhere could be one or more files, or a database. I suggest you read a couple of articles here on CodeProject, at best you might come up with some functional search terms that match or come close to your application domain. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

        Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

        S Offline
        S Offline
        sanyexian
        wrote on last edited by
        #3

        Hi,Luc! Thank you very much! I will search some articles to read :) By the way,could you give me some keywords for search ;P Thanks!

        L 1 Reply Last reply
        0
        • S sanyexian

          Hi,Luc! Thank you very much! I will search some articles to read :) By the way,could you give me some keywords for search ;P Thanks!

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          CodeProject search articles for save restore form state gave as first hit: Save and restore the state of a Windows Form in .NET 2.0[^] which uses registry (IMO not recommended except for a single very simple form). :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

          Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups