将值从Web应用程序传递到Windows窗体 [英] passing value from web application to windows forms
本文介绍了将值从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.
这篇关于将值从Web应用程序传递到Windows窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文