473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Can I return a value from the calculator

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
3 2058

"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike Copeland | last post by:
In the following code I am calculating 2 values when the "Compute Distance" button is pressed. I would like to find a way to "return" both value to the form so I can show both when the calculation...
6
by: Rafael | last post by:
Hi Everyone, I need some help with my calculator program. I need my program to do 2 arguments and a 3rd, but the 3rd with different operators. Any help would be great. Here is my code.... ...
41
by: Saurabh Saxena | last post by:
can we calculate the 73! value in c or c++ without loss of significant digits.
3
by: Paul | last post by:
I want to make a simple calculator program but dont know where to get started. This is not GUI but a simple terminal program. It would get input like this Enter number: 5 + 10
5
by: VB Programmer | last post by:
I have a javascript calculator. How do I pass the value of the calculator result to another ASPX page so that I can right some VB.NET against the value? Thanks!
3
by: PieMan2004 | last post by:
Hi, ive been looking for a solid java community to help me when im tearing out my hair :) Basically ive constructed a GUI that has to represent the same look and functions of the typical windows...
45
by: noridotjabi | last post by:
What is the purpose of the function pointer? Why do you need a pointer to a function. I cannot really think of any application where this is the only or even easiest solution to a problem. I'm...
3
by: itsmichelle | last post by:
This is a very primative code of a java swing calculator. I have assigned all the number buttons and the operator buttons and I can add, subtract, multiply, and divide two numbers together. However,...
1
AaronL
by: AaronL | last post by:
Hello, First I would like to say thank you all for your help in the past. I am stumped again. I am creating an e-commerce system and I want to be able to upload images to the server and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.