本文介绍了如何在c#窗体中从其他应用程序创建一个正在运行的应用程序的对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有两个窗口应用程序。申请a和b。现在应用程序有一些数据,如用户名,公司代码等。我想要做的是我想从应用程序b创建应用程序对象,并希望访问用户名和公司代码到应用程序b。可能吗?我知道我们可以在c#中创建一个excel对象,同样我们也可以创建其他应用程序的对象。还有





VB的Createobject方法做同样的我猜但不确定我们是否可以在c#中使用类似的东西?

Hi all ,

i have two window application. application a and b. now application a have some data like username , companycode etc. what i want to do is i want to create an object of application a from application b and want to access the username and company code to application b. is it possible? i know we can create an object of excel in c# ,same way can we create object of other application as well. also


VB's Createobject method do the same i guess but not sure if we can use something similar in c# ?

推荐答案


You can write user username and company to text file and access this file from application b.
Hope this will helps you.


这篇关于如何在c#窗体中从其他应用程序创建一个正在运行的应用程序的对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 11:44
查看更多