Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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# ?
Posted

Excel is a COM automation server.
While you can actually modify your application in order to make it a COM automation server too, I would suggest you to use another (might be simpler) form of IPC.
 
Share this answer
 
Comments
ravikhoda 20-May-14 8:15am    
alright thanks, will you provide me some more details about ipc?
CPallini 20-May-14 8:22am    
Google is your friend. We have also articles here at CodeProject:
http://www.codeproject.com/search.aspx?q=C%23+IPC&x=13&y=11&sbo=kw&usfc=false
SQL
You can write user username and company to text file and access this file from application b.
Hope this will helps you.
 
Share this answer
 
Comments
johannesnestler 20-May-14 10:23am    
a "poor man's" solution if you have both applications under control - but then, why not do something "better"...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900