INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Keep Windows Calculator on Top of Form Until Closing it

Keep Windows Calculator on Top of Form Until Closing it

(OP)
within my application there is a button that calls the windows calculator. System.Diagnostics.Process.Start("calc")

my question is, is it possible to open the calculator and force focus on it until the user closes it.

Thanks in advance

RE: Keep Windows Calculator on Top of Form Until Closing it

I would say: No.
And why would you want to ‘force focus on it until the user closes it’?

Let’s say I am your user and I need to calculate some values and place them into your app. The calculator opens, I can do some math, but I cannot enter anything into any application, including yours, because you ‘forced the focus’ on the calc. I need to close it, enter my value, open calc again to do another calculation, close the calc again.

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.

RE: Keep Windows Calculator on Top of Form Until Closing it

(OP)
okay, maybe force focus is not the correct way but I need to embed the calculator into my main MDI form.

RE: Keep Windows Calculator on Top of Form Until Closing it

Out of curiosity,
What type of calculations will your users do (using the Window’s calculator) that you cannot do on the VB.NET Form?

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.

RE: Keep Windows Calculator on Top of Form Until Closing it

If you can find it - DSOFramer will enable you to embed Calc.exe in a Form or Panel within your application. If you can find it and decide to use it BEWARE - it was created by Microsoft as a .NET workaround for OCX - it works (I've used it in the past) but it can cause so many problems that Microsft pulled it completely from their webpages. Microsoft did document that it was unsupported and that it should be used with caution. I think that I was probably very lucky in that I had no problems with it.

Have a look here for a different method:

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close