Click here to Skip to main content
15,891,375 members
Articles / Programming Languages / C#

Pass value between forms using events

Rate me:
Please Sign up or sign in to vote.
4.93/5 (29 votes)
22 May 2010CPOL 63.4K   24  
The correct way to inform another object that something has happened or a value has changed.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
5 Aug 2010César de Souza
Alternatively, you could just expose some public properties and raise a standard event. In the event handler you could read the properties as usual, without having to define a new EventArgs.Also if you really need to set properties on the owner, you again could just expose some public...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO Dave Meadowcroft
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions