Link to home
Start Free TrialLog in
Avatar of Jasmin01
Jasmin01Flag for South Africa

asked on

C# Console application

Hi.

I am writing a console application that I would like to use to call a procedure from another program, instead of rewriting the code again.  I have added the program to my "References" file, but I am unsure of how to call the procedure from the other program.  Can anyone give me some samples on how to do this?  I am using Visual Studio 2008
Avatar of Kalpesh Chhatrala
Kalpesh Chhatrala
Flag of India image

ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jasmin01

ASKER

I have created the console application and I have referenced the exe application, like the code below:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AppMailer;

namespace Mailer
{
    class Program
    {
        static void Main(string[] args)
        {
        }
    }
}

I have to call the function found in my form1.vb file, but I don't know how to do this.  Can you help?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@kaufmed - very nice explanation.