in .Net, there is uitility called 'Upgrade Visual Basic 6 code' in Tools section. Type ur code in code editor and use this tool.

I hope it helps

regards

prakash