S B,
What you are trying to do is a bad, bad idea for two reasons.
First, a Form derives ultimately from MarshalByRefObject, which means
that the remoting server will have to remote back into your app in order to
set the property or call the method.
Second, if you manage to make the call, the call will most likely come
in on a thread that is not the UI thread, and you will have to marshal the
call to a UI thread.
Now, the reason you aren't able to call back to the caller is because
the server most likely doesn't have type information about the caller. In
most cases you don't want this anyways.
In order to get around this, you should have the remoted method return
some information that the client can use. This way, the server doesn't need
specific information about the client.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"vijay" <bs**@india.hp.com> wrote in message
news:p5**************@news.cpqcorp.net...
Hello
I have a Windows forms application AppNET, that has a remotable object
A VC++ application APVC is invoking a remote method on the .net remotable
object in APPNET
Ex Remote method SetInfo(string strName)
This name has to be displayed in a form that is displayed
Problem is, I am not able to get access displayed form dialog from the
remote method
Any clues how to solve this
Here, I used a static vairable Form and tried to access this variable in
remote method set Info, But it didint work,
Please help
Regards
S B