将值从Web应用程序传递到Windows窗体

将值从Web应用程序传递到Windows窗体

问题描述:

HI家伙



我要求从网站发送一个值到windows窗体......我能用系统打开windows窗体 .diagnostics.process.start.....但我如何传递数值并以窗体形式检索相同的内容....









谢谢

darshan

HI guys

I ve a requirement to send a value from website to windows forms ...... i m able to open the windows form using "system.diagnostics.process.start" .....but how cn i pass the value and retrieve the same in windows form ....




thanks
darshan

你需要为此创建一个web api并将api传递给windows窗体。 web api的输出可以是json格式或任何形式。要获得json输出,你可以使用webclient来读取web api并给出输出。



有点冗长的过程但很有用。
You need to create a web api for this and pass the api to the the windows form. The output of the web api could be in a json format or anything. To get the json output you could use webclient which is used to read web api's and gives the output.

A little lengthy process but useful.