I am new to writing Active X controls.

The control will accept a value, do some calculation and return the result.
Could anyone enlighten me how to do it?
Thanx in advance!!