Store values in variables when changing UserControl

0

Good morning,

I am working on an application which is a form, I have worked on C # using Windows Forms and User Controls.

Here is an example:

This acts as the Windows Form Main, in which the center is a panel where you link the User Controls:

When running the program is as follows:

Pressing the next arrow launches another different form in another User Control.

My question is how I can store the values of textbox, datetimepicker, etc., variables and then store them in a database, what happens is that I can not save them when I press the button of the date since one is User Control and another is Windows Forms and for obvious reasons you can not. I would like to know if there is a User Control event like changing it to do such a thing or something like that.

Greetings I hope I could explain.

    
asked by Ezequie Lopez 23.11.2018 в 01:59
source

0 answers