In a TextBox modified in one form, change the content of the GridView to another form with an event and a delegate

In C # Winform , I have two forms, in the first form I have a TextBox, and in the next form I have a GridView with TextBox in the first form.

Now I want the text in the TextBox of the first form to change, the contents of the last form to change.
Any ideas? How can I do that?

+4
source share
1 answer

If you do not want to create a custom event, you can also achieve the same effect when binding data, if you have a basic model. See the answer to this post . Binding data can save you a ton of problems when hooking up events, manually retrieving and setting text box values, and the like (although this can make debugging difficult). WPF definitely simplifies data binding, but here's a tutorial for data binding for WinForms. There is at least one comment that the author made after he could no longer edit his article.

+1
source

Source: https://habr.com/ru/post/1446597/


All Articles