By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,491 Members | 1,108 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,491 IT Pros & Developers. It's quick & easy.

Can I return a value from the calculator

P: n/a
Art
Hi,

In part of my application the user may need to do a simple arithmetic
calculation in order to get the value to put in a text box. I was thinking
that it would be good if I could display the Windows calculator and then put
the result in the textbox for the user. Additionally, I'd like to keep the
text of the calculation - if possible.

Is any of this possible? How would I go about it?

I tried the Shell function but couldn't get a return value.

Art
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"Art" <Ar*@discussions.microsoft.com> wrote in message
news:9C**********************************@microsof t.com...
Hi,

In part of my application the user may need to do a simple arithmetic
calculation in order to get the value to put in a text box. I was
thinking
that it would be good if I could display the Windows calculator and then
put
the result in the textbox for the user. Additionally, I'd like to keep
the
text of the calculation - if possible.

Is any of this possible? How would I go about it?

I tried the Shell function but couldn't get a return value.

Art

It would probably take less time to knock up a simple calculator form and
use that.

There is probably some way to go about it with APIs and trying to grab the
text of the calculator, but it certainly wont be too awful easy.

Nov 21 '05 #2

P: n/a
Art
Rick,

Thanks for the suggestion. I actually don't need anything that looks like a
calculator, a text area would work fine. In any case I was trying to avoid
coding something to parse simple equations and thought if I could grab the
calculator it might be easier.

Thanks again,

Art

"Rick Mogstad" wrote:

"Art" <Ar*@discussions.microsoft.com> wrote in message
news:9C**********************************@microsof t.com...
Hi,

In part of my application the user may need to do a simple arithmetic
calculation in order to get the value to put in a text box. I was
thinking
that it would be good if I could display the Windows calculator and then
put
the result in the textbox for the user. Additionally, I'd like to keep
the
text of the calculation - if possible.

Is any of this possible? How would I go about it?

I tried the Shell function but couldn't get a return value.

Art

It would probably take less time to knock up a simple calculator form and
use that.

There is probably some way to go about it with APIs and trying to grab the
text of the calculator, but it certainly wont be too awful easy.

Nov 21 '05 #3

P: n/a
In article <98**********************************@microsoft.co m>, Art wrote:
Rick,

Thanks for the suggestion. I actually don't need anything that looks like a
calculator, a text area would work fine. In any case I was trying to avoid
coding something to parse simple equations and thought if I could grab the
calculator it might be easier.

Thanks again,

Art


http://groups-beta.google.com/group/...24802d126c1908

Here is a way that might help you.

--
Tom Shelton [MVP]
Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.