What you are apparently looking for is inter-process communication. With .NET, you have various options, among the following:
- Windows messages (it boils down to
SendMessage
and handling these in WPF, orWM_COPYDATA
if you need to transfer more data than just integers) - Named pipes
- .NET remoting
- Other libraries built on top of these like XDMessaging
Here is another list for IPC methods: Interprocess Communications