Depending on the needs of the application, it could be impossible. The best approach if wanting to move from a desktop client app to a web based solution is to go client/server where you do all the grunt work on the server and use html files to render the view.
There are a lot of options available like PHP, RAILS, ASP.NET, but most of us here are partial to Java based web applications also known as
JEE.