I haven't tried it, but
Developer Fusion[
^] claim to do it.
I'd suspect you will have some problems though - even they admit it's not perfect, so expect to have to do some serious testing of teh output.
And don't expect it to convert a Winforms app to a website or similar - that is a whole different kettle of fish!