I think you're only chance is to change your program into an ActiveX control, which you can embed in a web page. Note that the security settings on most people's browsers will not let you automatically install an ActiveX control - at the very least they will have to click OK on a couple of messages warning them of the possible dire consequences of installing an unknown control.
The other question is whether your code could run on "any" machine. For example, does it connect to a local database server with a particular name, or expect a certain file to exist at a certain location?