Executing another EXE from .NET

K

Kakkanattu

Hi,
I have one C# .NET application(MainApp).
Also I have another windows application(only EXE available), which is
developed in some other language(not .NET)(let it be SecondApp). In the
SecondApp, it has(two textboxes) one username and password and one ok
button.

My requirement is that, from my MainApp, I need to pass the username
and password to the SecondApp and execute the Click event of Ok button.

Anyone of you please help me.

Thanks
RoBiN
 
K

Kakkanattu

Hi,
Thanks for the reply.
But how to pass the two arguments(username to one text box and password
to another) to another application?. Also I need to fire the ok button
Click event.
Thanks
RoBiN
 
G

Greg Young [MVP]

Can you not use sendkeys to click the button? usually sending tabs or an
enter works pretty well to move to things like buttons.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top