[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


C# - How to get an Instance of a running .Net Winform app and call a method

Posted on 2012-08-16
Medium Priority
Last Modified: 2012-08-31
I have an .Net winform app called  TEST.EXE
How can I, from another C# program get a reference to it and call a method on it.
I need to call a method called  RefreshData.

I know I can get the process by doing something like this
Question by:JElster
1 Comment

Accepted Solution

databoks earned 1500 total points
ID: 38302761
You can by default to your Console Application pass arguments because the main method takes arguments.

See this:


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question