how to enable the textbox to be able to save text??
-
i have a problem like i would not like my user to type in the same thing over and over again. What i would like to do is tt if the user type something in the textbox, my textbox is able to save the statement. So in future the user who wants to use the program again can just click on the dropdown arrow and select the text and not keying in everything again. Any solution to tis??
-
i have a problem like i would not like my user to type in the same thing over and over again. What i would like to do is tt if the user type something in the textbox, my textbox is able to save the statement. So in future the user who wants to use the program again can just click on the dropdown arrow and select the text and not keying in everything again. Any solution to tis??
You need to write the code to store it somewhere. A textbox isn't going to do that, and it's the wrong place to write the code to store your information. Where do you want to store it ?
Christian Graus - C++ MVP
-
i have a problem like i would not like my user to type in the same thing over and over again. What i would like to do is tt if the user type something in the textbox, my textbox is able to save the statement. So in future the user who wants to use the program again can just click on the dropdown arrow and select the text and not keying in everything again. Any solution to tis??
Also, it appears you want a combo box, not a text box. Probably you want to store past choices as Xml, I would suspect.
Christian Graus - C++ MVP
-
Also, it appears you want a combo box, not a text box. Probably you want to store past choices as Xml, I would suspect.
Christian Graus - C++ MVP
Currently in my application i am using textbox. wat i mean is if the user type in for example 'myproject.com.sg' and tis phrase wil be save and the next time the user will not have to type in anymore but can select from a dropdown arrow. i am doing sumthing like combo but as i know the variable we have to preset ourselves and it is not fexible. What i need to save is wat the user type in and i cant hardcode wat they ared going to type.
-
Currently in my application i am using textbox. wat i mean is if the user type in for example 'myproject.com.sg' and tis phrase wil be save and the next time the user will not have to type in anymore but can select from a dropdown arrow. i am doing sumthing like combo but as i know the variable we have to preset ourselves and it is not fexible. What i need to save is wat the user type in and i cant hardcode wat they ared going to type.
OK, so do what I said. Use a combobox and store the text that is entered to an XML file.
Christian Graus - C++ MVP
-
OK, so do what I said. Use a combobox and store the text that is entered to an XML file.
Christian Graus - C++ MVP
-
I am going out. A DataSet can save/load XML, or you can use an XmlDocument.
Christian Graus - C++ MVP
-
I am going out. A DataSet can save/load XML, or you can use an XmlDocument.
Christian Graus - C++ MVP
-
mystring = text1.text //store what they've entered in a string combo1.additem mystring //store what's in the textbox in a combo next time user uses the system they drop down the combo to find their item and don't enter text in the text box
-
Subjugate wrote:
Any site whereby i can refer to?
This one. There are plenty examples of how to use XML if you search the articles.
*** Developer Day 4 in Reading, England on 2nd December 2006 - Registration Now Open *** Upcoming Scottish Developers events: * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog | Photos
-
i have a problem like i would not like my user to type in the same thing over and over again. What i would like to do is tt if the user type something in the textbox, my textbox is able to save the statement. So in future the user who wants to use the program again can just click on the dropdown arrow and select the text and not keying in everything again. Any solution to tis??
You can also use SQL or Access to store the input data. Although I suspets it would be slower than going the XML route. But if you have no experience with XML this may be the way to go. It should be fairly easy. Just create a SPROC that updates the table after each entry and on page load fills a dataset that populates the comboBox. I know I was really broad but you can find hundreds of sites on how to accomplish this. Good Luck. GT