Connecting Tech Pros Worldwide Forums | Help | Site Map

Store textbox value

Member
 
Join Date: Mar 2008
Posts: 52
#1: Oct 14 '08
How to store the value that we enter in the textbox , even after we unload the form. Im really getting crazy doing this, i cant get the flow how to do this function. plzzzzzzz guide me....!
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,507
#2: Oct 14 '08

re: Store textbox value


try to store that in a variable with global scope.
OuTCasT's Avatar
Needs Regular Fix
 
Join Date: Jan 2008
Location: South Africa
Posts: 354
#3: Oct 14 '08

re: Store textbox value


Create a public variable and set the variable to the textbox value.

What i do is create a module ffor eg module1.vb and then declare the variable inside.

public strTotal as string

eg strTotal = textbox1.text

Then that should hold the value until the application is terminated.
Reply