GSSCALC.VBX is shareware..  If you find this VBX useful a small fee of $10 is
requested.  An additional $25 will also get you the source code.  Send Check
or Money order to:

Brad Guttilla
4718 Hummingbird Dr.
Waldorf MD 20603

Comments or suggestions can be sent to me at CompuServe 73051,1761.

GSSCALC.VBX was writen in MSVC to fill a large hole
I find in most of my VB applications. I have often needed a calculator type 
tool for use on forms.  This routine gives me that capability 
without rewritting the code.

GSSCALC.VBX

Properties

Caption --- Does nothing...

Total     Total 
InputNum  The last number input

Controls:
	Click on any button to perform operation
	CE clears the number but not the operator.
	C  clears the entire calculator


Depending on the size the font may need to be changed.

EVENTS
The only events recognized are the Drag events and the Click event.  

To put a formatted number into "Text1.TEXT" add the following code:

Add a Text control to form 1.
Add GSSCALC.VBX to form 1.

In the GSSCalc1_click event put the code

GSSCalc1_click
	text1.text=Format$(GSSCalc1.Total,"General Number")
end


MOUSEDOWN
  In addition I added a mousedown event to facilitate dragging.
To use the drag feature as well as the other features you should activate the
drag with the right mouse button.  (See example Program).


