Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3331450
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:35:07+00:00 2026-05-17T23:35:07+00:00

I know I can open Windows Calculator with the following code : System.Diagnostics.Process.Start(calc); But

  • 0

I know I can open Windows Calculator with the following code :

System.Diagnostics.Process.Start("calc");

But I wanna open it in my C# Win Application, i.e : I don’t want to open it in the independent window, I wanna open it in my window.
How can I do it ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:35:08+00:00Added an answer on May 17, 2026 at 11:35 pm

    You cannot embed another application into your form.

    However, you can move the calculator window on top of your form and set your form as its parent. This might accomplish the visual effect that you’re looking for. You might check into the SetParent API function. For example:

    System.Diagnostics.Process p = System.Diagnostics.Process.Start("calc.exe");
    p.WaitForInputIdle();
    NativeMethods.SetParent(p.MainWindowHandle, this.Handle);
    

    A better solution might be just to roll your own calculator control in C# if you really need that functionality embedded in your app. Banging together a simple calculator really isn’t at all difficult, and its infinitely customizable to do and look exactly as you want.

    Something like this, perhaps, would be a good starting point if you wanted to roll your own calculator: http://www.codeproject.com/KB/cs/Scientific_Calculator.aspx

    And I’ve always thought this type of a control would be ridiculously useful someday if I ever wrote an app that relied heavily on numerical input: http://www.codeproject.com/KB/miscctrl/C__Popup_Calculator.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

do you know how can one in Textmate open several windows for the same
I'm would like to know how I can open a specific file using a
Do you know what can I use to open page in my application and
I know you can do something like this: readlines(FileName) -> {ok, Device} = file:open(FileName,
Can anyone please help me to know how to open an excel sheet in
I have a query that I know can be done using a subselect, but
You can know if the event stack is empty calling the gtk.events_pending() method, but
I can open a context menu but cannot see the opened menu list through
I am making an all-in-one calculator (I guess). Here is my code (I know
Does anyone know how can I close all popup windows (window popup by javascript)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.