Using remoting for this might be complete overkill. Sometimes I think a lot of .net programmers never did regular windows programming. If you just want to receive simple messages you can use WndProc. Register a custom windows message and send it to any window you want. Use win32 PostMessage to send it.
protected override void WndProc(ref Message m)
{
//calling the base first is important, otherwise the values you set later will be lost
base.WndProc(ref m);
//if the window message id equals the myCustomMessage message id
if((UInt32)m.Msg == myCustomMessage)
{
m.Result = (IntPtr)1;
// do something with the data
string text = m.WParam.ToInt32().ToString();
}
}
http://www.codeproject.com/KB/vb/Sen...y_message.aspx
-------- Original Message --------
Hi
How can I send simple commands like GotoClient 10, GotoSupplier 53 etc to a
WinForm app?
Thanks
Regards