473,382 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Save data in TextBoxes when close Form

Hi people.I have a problem and I will try to describe it.I have 5 forms in my Visual Basic application.First one is startup and other 4 forms are connected with first one.Also I have TextBoxes on all forms.I want to connect second form with fifth form, I mean I want to insert data in TextBoxes on second form and want that results of calculation will be showed in TextBoxes on fifth form, but when I close Second Form all data from TextBoxes of second form are erased.How to save them when close Second Form?
Dec 3 '13 #1
3 1455
Frinavale
9,735 Expert Mod 8TB
I mainly work in WPF so my suggestion would be to use an Object that both pages are bound to.

Because both pages would be using the same object...if my object was a Person, and I changed they eye colour of that person on one page it would appear on the second page as well.

I'm not sure what you are currently doing to display the values on your "5th" page so I can't really help you much further.

-Frinny
Dec 4 '13 #2
I want to diplay in TextBox on 5th form, a result of calculation using TextBoxes on form2...
Thanks in advance
Dec 7 '13 #3
Frinavale
9,735 Expert Mod 8TB
Ok, what have you tried so far to accomplish that?

Did you consider creating an object for this purpose as I suggested previously?

Just to recap:
I suggested creating an object that would be used by both forms.

This object would be responsible for gathering information from the Second-Form and be responsible for "Doing Calculations".

This object would also be used in the Fifth-Form to display the calculations based on what was gathered in the Second-Form.

That way, when you close Second-Form (and all of your TextBoxes are destroyed) you will still have access to the information provided by the user in that form. As an added bonus, the object could actually have functionality that does calculations based on the data within it...that is the beauty of object oriented programming :)
Dec 9 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Stuart E. Wugalter | last post by:
Hello All! I have a button on a form that is tied to the following query: UPDATE tblSEQTAQ AS A SET A.taqcall = WHERE (((A.taqcall)="Allele 1")); The user looks at the form and decides to...
4
by: Mindy | last post by:
I have two questions here: (1) what is the difference of close form and close table? (2) How "Prompt" works I used close form macro in my database. I hope when a user close the form, he/she will...
0
by: Rob | last post by:
I have a Webservice written in C# that provides data to both a web browser through ASP.net and to a VC++ client. I have been able to retrieve data from SQLServer and passing to my C++ client as...
3
by: kev | last post by:
Hi folks, I have a form for registration (frmRegistration) whereby i have two buttons. One is Save which saves record using the OnClick property. I used wizard to create the save button. The...
2
by: Tom_F | last post by:
To comp.databases.ms-access -- I would like to trigger an event when I close a form -- but ONLY when the data in the "RecordSource" table has been updated. I tried using the AfterUpdate event,...
1
by: doublelucky | last post by:
Does anybody know that how to get the Word close event? And how can I get the opening word file handle, replace the dialog? Thx By the way, if some one knows, please send a mail to <email...
1
by: TonyJ | last post by:
Hello! I'm using VS2005. I'm looking at ADO.NET and have found some test tutorial solution on microsoft MSDN. The one that I'm looking at now is called Walkthrough: Saving Data to a Database...
2
by: Hulas | last post by:
Guys, I have two questions. (a) How do I add two fields of the same table to a single combo box. For example if I have two fields ID1 and ID2 in a table called Identification, than how should I...
5
doma23
by: doma23 | last post by:
I have a form with multiple textboxes and 2 command buttons (Save, Cancel). If user clicks the CANCEL button, I would like to check if all the textboxes on that form are null and in the case they...
0
by: ncsthbell | last post by:
I have an MS2007 access database. On one of the forms that is used to edit/change data, there is a button 'Return to main menu'. Once the user has finished making the changes on the form and clicks...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.