how to keep the values in the form
-
hello, In my application i am having a form with textbox fields and one button exit. when the form is closed and opened for the second time i like to see the values already i had entered in the textboxes for the first time. plz help me how i can do this.... Thnaks in advance
-
hello, In my application i am having a form with textbox fields and one button exit. when the form is closed and opened for the second time i like to see the values already i had entered in the textboxes for the first time. plz help me how i can do this.... Thnaks in advance
They obviously do not come from thin air. You can store them in a file, in a database ( but if you don't already have one, that seems like a waste of time ), or in the registry. I'd store them in an XML file.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
They obviously do not come from thin air. You can store them in a file, in a database ( but if you don't already have one, that seems like a waste of time ), or in the registry. I'd store them in an XML file.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
hello, yah i know how to save the values entered in the form into the database and well i know how to retrive the values from the database. what i need is when the form is closed and opened for the second time i like to see the values what i had entered previously. Thanks in advance
-
hello, yah i know how to save the values entered in the form into the database and well i know how to retrive the values from the database. what i need is when the form is closed and opened for the second time i like to see the values what i had entered previously. Thanks in advance
Anjani Poornima wrote:
yah i know how to save the values entered in the form into the database and well i know how to retrive the values from the database.
If you know both of those things, then you already know how to retrieve them the second, or any, time the form is opened. simply do it in the
Load
event handler of theForm
in question.Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
hello, In my application i am having a form with textbox fields and one button exit. when the form is closed and opened for the second time i like to see the values already i had entered in the textboxes for the first time. plz help me how i can do this.... Thnaks in advance
you have 2 choices either store the data locally as CG suggested or use form.hide(), this will require you to manage the open form differently but the form values will not change between open/hide events.
-
hello, yah i know how to save the values entered in the form into the database and well i know how to retrive the values from the database. what i need is when the form is closed and opened for the second time i like to see the values what i had entered previously. Thanks in advance
I don't understand your question then. You know how to use a database, but you don't get that if you want to store the values in your textboxes, you need to write code to store them, and to retrieve the values ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.