An open API service indexing awesome lists of open source software.

https://github.com/janluksoft/winformdelegate

The project shows how the 'delegate' mechanism works
https://github.com/janluksoft/winformdelegate

c-sharp dotnet visual-studio windows-forms winform

Last synced: about 2 months ago
JSON representation

The project shows how the 'delegate' mechanism works

Awesome Lists containing this project

README

          

# WinForm Delegate
The project shows how the 'delegate' mechanism works.
A descendant form called by a parent, normally cannot call the parent's methods. Thanks to the delegate mechanism, it can do so. A delegate is a reference to the parent method. Form1 initializes Form2 and passes it a reference to its method 'jDelegatPrintFromForm1()' Form2 presses its key and writes its text in Form1.

## Details
VS2019 and Target Framework: .NET Framework 4.5.

![](WinForms_with_delegates2.png)