I am creating movie booking program (for coursework)and i need to link textboxes within the receipt form to textboxes which the user has already entered their information into.
Asked
Active
Viewed 15 times
1 Answers
0
You haven't mentioned which technology you are using for your C# development!
Is it WPF, UPW, Xamarin.Forms or WinForms?
I suggest you have read about Bindings; You can bind the text property of an Entry
to a ViewModel using TwoWay binding so when the text is changed, it will update the value inside your ViewModel. If you have a Singleton ViewModel (static instance of VM), you can easily use the data across different pages/forms (albeit at the cost of memory consumption)

Amir Hajiha
- 836
- 8
- 20
-
-
Is it WinForms or Xamarin.Forms? Have a look on this question: https://stackoverflow.com/questions/1616003/data-binding-for-textbox – Amir Hajiha Mar 26 '19 at 11:56
-