Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call Calc.exe from Windows

Status
Not open for further replies.

Corinne

Programmer
May 15, 2001
146
US
I was hoping that someone would help me with the steps to call the calc.exe calculator application from within Windows. I just want to call calc.exe up when the user clicks a calculator icon within my VB application. I would prefer to do it this way rather than reinvening the wheel by writing my own clac routine. Any suggeations?

Thanks, Corinne
 
Check out the "Shell" command in help. That will bring up the calculator. You could also use the SetParent api to make the calculator stay within your application's window(like an MDI) It also wouldn't be hard to integrate the calc into your app so it looked like your own calc by using some pictureboxes with SetParent.
 
If You look up the SendKeys Function in help there is an app to call calc and press the buttons on it. Thanx Dave Shaw
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top