Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save listbox items after form is visible=false

Status
Not open for further replies.

karnoobs

Technical User
Aug 22, 2006
25
EG
I am designing 2 forms the 1st form contains a button which views the 2nd form. The 2nd form contains 2 listboxs and an add button and remove button after i add listitems to the second listbox i press OK button to save the added items and return to the main form (1st form), the problem is when i use Visible=false and then return the 2nd form again( which contains the listboxs) all added items are not available and everything is reset. i use a public string array Variable initialized in a class i created so i can handel the data from any form but it didnt work i dont know why...all what i want to do is like the window of the usual Properties window and after i choose my setting i press apply and whenever i return to the properties i find my settings as it is...how to do this in my case

NOTE:- I am using Visual Studio .NET 2003 C#

Thanks for your patience
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top